Kee wrote:
> This post describes the exact problem I am facing:
> http://www.symfony-project.com/forum/index.php/m/29211/?srch=doctrine+unique#msg_29211
> 
> As far as I know, there is no way to specify multiple fields as unique
> in sfDoctrine plugin, which gives me headache in keeping the
> schema.yml and the actual database consistent.
> 
> Am I wrong about this? Or there are other ways to do it?

You are wrong on this :)
Just define and index and set an attribute "unique: true" in the index. 
For multicolumn primary keys, you need to instead set the "primary: 
true" attribute on all the column definitions.

regards,
Lukas

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony developers" 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-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to