Hi, Currently have a problem with basic Doctrine getter.
Doctrine: 1.2 Symfony 1.4.8 Php 5.2.14 Assume the situation: I have two models: M1 and M2, the relation many to many; On view side i'm gettiing data in following style: *** foreach ($m1->M2[] as $m2) { //do smth with m2 } *** by default Doctrine retrive data in natural order it's not good for me, cause M2 should be order by special field inside. So I want $m1->M2[] retrieve Doctrine_Collection ordered by default in column I want. Any Ideas? Currently I'm think about overriding $m1->getM2s() to add order by, however I'm not sure about the getM2s() method signature, etc. Please help, Thanks in advance. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en