Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Map\VideoBundle\Entity;
- use Doctrine\ORM\Mapping as ORM;
- use Symfony\Component\Validator\Constraints as Assert;
- /**
- * @ORM\Entity
- */
- class Categ
- {
- /**
- * @ORM\GeneratedValue
- * @ORM\Id
- * @ORM\Column(type="integer")
- */
- private $id;
- /**
- * @ORM\Column(type="string",length="255")
- * @Assert\NotBlank()
- * @Assert\MinLength(3)
- */
- private $nom;
- /**
- * Get id
- *
- * @return integer
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * Set nom
- *
- * @param string $nom
- */
- public function setNom($nom)
- {
- $this->nom = $nom;
- }
- /**
- * Get nom
- *
- * @return string
- */
- public function getNom()
- {
- return $this->nom;
- }
- }
Add Comment
Please, Sign In to add comment