Hi, I was not using that uniqueCinstraint in my entity as you show the example, the entity just had a PK (parent_id) and I used it as FK for unidirectional oneToOne relation from this child entity to parent entity. Then I ran update schema tool and it suggested that uniqueConstraint sql. I applied that sql on db.
1) I guess running that sql was enough and I should not add that uniqueConstraint in my entity too as it caused the error I said? Or that uniqueConstraint should be in entity too, why did I get that error? 2) Does a PK really need to have a uniqueConstraint? -- You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/d/optout.
