Guest User

Untitled

a guest
Jan 22nd, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. <?php
  2. namespace Application\ProdrepBundle\Entity;
  3.  
  4. use Doctrine\Common\Collections\ArrayCollection;
  5.  
  6. /**
  7. * @orm:Entity
  8. * @orm:Table(name="product")
  9. */
  10. class AbstractProduct extends Entity
  11. {
  12. /**
  13. * @orm:Column(type="string",nullable=false)
  14. * @assert:NotBlank()
  15. * @customValidation:Unique(message="The product with same name already exists")
  16. */
  17. private $name;
  18. }
Add Comment
Please, Sign In to add comment