Guest User

Untitled

a guest
Jan 21st, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. <?php
  2. namespace Map\VideoBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5.  
  6. /**
  7. * @ORM\Entity
  8. */
  9. class Categ
  10. {
  11. /**
  12. * @ORM\GeneratedValue
  13. * @ORM\Id
  14. * @ORM\Column(type="integer")
  15. */
  16. private $id;
  17.  
  18. /**
  19. * @ORM\Column(type="string",length="255")
  20. * @Assert\NotBlank()
  21. * @Assert\MinLength(3)
  22. */
  23. private $nom;
  24.  
  25. /**
  26. * Get id
  27. *
  28. * @return integer
  29. */
  30. public function getId()
  31. {
  32. return $this->id;
  33. }
  34.  
  35. /**
  36. * Set nom
  37. *
  38. * @param string $nom
  39. */
  40. public function setNom($nom)
  41. {
  42. $this->nom = $nom;
  43. }
  44.  
  45. /**
  46. * Get nom
  47. *
  48. * @return string
  49. */
  50. public function getNom()
  51. {
  52. return $this->nom;
  53. }
  54. }
Add Comment
Please, Sign In to add comment