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
--
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en.