table_one:
_attributes: { phpName: TableOne }
id: { type: integer, primaryKey: true,
required: true, foreignTable: table_two, foreignReference: id,
localReference: id }
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED]
On Behalf Of [EMAIL PROTECTED]
Sent: 18 June 2007 11:49 AM
To: symfony users
Subject: [symfony-users] sfDoctrine sort of one-to-many
hi!
does anyone know, how i can set the order or sort a one-to-many relation?
example:
schema.yml
Client:
tableName: client
columns:
name:
type: string
size: 1000
description:
type: string
size: 1000
Computer:
tableName: computer
columns:
name:
type: string
size: 1000
client_id:
foreignClass: Client
foreignName: Client
cascadeDelete: true
now, after adding some "Computers" to "Client" ... how can i order the
one-to-many "Computers"?
when i access one client like this...
$data = sfDoctrine::getTable('Client')->find(1);
$data->getComputer() is not in alphabetic order...
thanks for your helb
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.472 / Virus Database: 269.8.16/849 - Release Date: 2007/06/14
12:44 PM
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.472 / Virus Database: 269.8.16/849 - Release Date: 2007/06/14
12:44 PM
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---