Advertisement
Guest User

Untitled

a guest
Jun 30th, 2015
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.51 KB | None | 0 0
  1. <?php
  2.  
  3. namespace AppBundle\Shop\Entity;
  4.  
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Gedmo\Mapping\Annotation as Gedmo;
  7.  
  8. /**
  9.  * @ORM\Entity
  10.  * @ORM\Table(name="taxonomies")
  11.  */
  12. class Taxonomy
  13. {
  14.     /**
  15.      * @ORM\Id
  16.      * @ORM\Column(type="integer")
  17.      * @ORM\GeneratedValue(strategy="AUTO")
  18.      */
  19.     protected $id;
  20.  
  21.     /**
  22.      * @ORM\Column(type="string", length=100)
  23.      */
  24.     protected $name;
  25.  
  26.     /**
  27.      * @Gedmo\Slug(fields={"name"})
  28.      * @ORM\Column(type="string", length=100, unique=true)
  29.      */
  30.     protected $slug;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement