hello, I found a solution by adding a default sort order to the Visitor model:
Visitor: options: orderBy: name ASC columns: id: ... On 16 Feb., 16:06, Tom Ptacnik <to...@tomor.cz> wrote: > I think there were topic like that, and if I remember right the answer > is bad ... it's not possible. > > On 16 ún, 15:51, axel at <axel.zu...@gmail.com> wrote: > > > hm no one with the same problem here? > > > On 15 Feb., 14:41, axel at <axel.zu...@gmail.com> wrote: > > > > hello, > > > > using symfony 1.4 with doctrine: > > > how can I add an order by xy to the default doctrine getter > > > > example: > > > > Event: > > > columns: > > > id: > > > type: integer(4) > > > primary: true > > > title: > > > type: varchar(255) > > > Visitor: > > > class: Visitor > > > refClass: Event2Visitor > > > local: id > > > foreign: id > > > orderBy: name > > > foreignAlias: Visitors > > > > Visitor: > > > columns: > > > id: > > > type: integer(4) > > > primary: true > > > name: > > > type: varchar(255) > > > > Event2Visitor: > > > columns: > > > eventid: > > > type: integer(4) > > > primary: true > > > visitorid: > > > type: integer(4) > > > primary: true > > > relations: > > > Visitor > > > local: visitorid > > > foreign: id > > > Event: > > > local: eventid > > > foreign: id > > > > var event = .... > > > > foreach ( event->getVisitors() ).... > > > > is ordered by id and not by name, the orderBy name setting in > > > schema.yml seems to be ignored -- 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