Created
March 24, 2016 10:41
-
-
Save Veve2/61fc99be44b5972412af to your computer and use it in GitHub Desktop.
Doctrine: Contrainte unique sur des champs mutiples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @ORM\Entity | |
* @ORM\Table(name="ecommerce_products",uniqueConstraints={ | |
* @ORM\UniqueConstraint(name="search_idx", columns={"name", "email"})}) | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment