[TYPO3-mvc] Ordering of Tx_Extbase_Persistence_ObjectStorage Objects

Frank Mey - NEW.EGO mey_mailings at newego.de
Thu May 5 09:53:35 CEST 2011


Hi,

thx 4 the info, could you sort them in the getter-Method of the model that
has
the relation ? How could that be done without loosing the object-type ?
Regards,
Frank

> -----Original Message-----
> From: typo3-project-typo3v4mvc-bounces at lists.typo3.org [mailto:typo3-
> project-typo3v4mvc-bounces at lists.typo3.org] On Behalf Of Sebastian
> Kurfürst
> Sent: Wednesday, April 20, 2011 6:40 AM
> To: typo3-project-typo3v4mvc at lists.typo3.org
> Subject: Re: [TYPO3-mvc] Ordering of
> Tx_Extbase_Persistence_ObjectStorage Objects
> 
> Hi Falk,
> 
> this is correct, that Object Storages are not sortable... This is because
they
> mock \SplObjectStorage, which implement "Set" semantics.
> 
> I regard this a design flaw in Extbase, which has been recently fixed in
> FLOW3 by the upgrade to Doctrine. We might lateron introduce some new
> "List" (something like an Array Collection) which also supports ordering.
> 
> Greets,
> Sebastian
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc



More information about the TYPO3-project-typo3v4mvc mailing list