Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

Sort referenced Documents (DocumentSet) #107

Open
michael-mader opened this issue Dec 20, 2012 · 0 comments
Open

Sort referenced Documents (DocumentSet) #107

michael-mader opened this issue Dec 20, 2012 · 0 comments

Comments

@michael-mader
Copy link

Is it possible to sort the elements inside a DocumentSet where the Elements are stored as References?

I have two collections:

  • article
  • comment

Article:
protected static $_requirements = array( 'author' => array('Required'), 'headline' => array('Required'), 'text' => array('Required'), 'created' => array('Required'), 'comments' => array('DocumentSet'), 'comments.$' => array('Document:Application_Model_Comment', 'AsReference') );

Now I want to retrieve a specific article (via id) and get the associated comments sorted by the creation date.
Is this possible? Is it easy to implement something like that?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant