Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with uniqueConstraints #122

Closed
kuczek opened this issue Jul 11, 2014 · 0 comments
Closed

Error with uniqueConstraints #122

kuczek opened this issue Jul 11, 2014 · 0 comments

Comments

@kuczek
Copy link
Contributor

kuczek commented Jul 11, 2014

Version:

knplabs/doctrine-behaviors           v1.0.1                Doctrine2 behavior traits

Error:

   Notice: Undefined index: name in /home/krun/WorkSpace/zadowoleni-handlowcy/vendor/knplabs/doctrine-behaviors/src/Knp/DoctrineBehaviors/ORM/Translatable/TranslatableListener.php line 109

When i added:

 /**
  * @ORM\Table("page_translation", uniqueConstraints={@ORM\UniqueConstraint(name="slug_constraint", columns={"slug", "locale"})})
  * @ORM\Entity
  */
@kuczek kuczek changed the title Error with unique Error with uniqueConstraints Jul 11, 2014
pmontoya added a commit to pmontoya/DoctrineBehaviors that referenced this issue Oct 20, 2014
The name of uniqueConstraints is the key $classMetadata->table['uniqueConstraints'] not a property
pmontoya added a commit to pmontoya/DoctrineBehaviors that referenced this issue Oct 20, 2014
Don't override existing uniqueConstraints
docteurklein added a commit that referenced this issue Oct 22, 2014
kuczek pushed a commit to kuczek/DoctrineBehaviors that referenced this issue Oct 25, 2014
The name of uniqueConstraints is the key $classMetadata->table['uniqueConstraints'] not a property
kuczek pushed a commit to kuczek/DoctrineBehaviors that referenced this issue Oct 25, 2014
Don't override existing uniqueConstraints
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants