Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Application\ProdrepBundle\Entity;
- use Doctrine\Common\Collections\ArrayCollection;
- /**
- * @orm:Entity
- * @orm:Table(name="product")
- */
- class AbstractProduct extends Entity
- {
- /**
- * @orm:Column(type="string",nullable=false)
- * @assert:NotBlank()
- * @customValidation:Unique(message="The product with same name already exists")
- */
- private $name;
- }
Add Comment
Please, Sign In to add comment