Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace AppBundle\Shop\Entity;
- use Doctrine\ORM\Mapping as ORM;
- use Gedmo\Mapping\Annotation as Gedmo;
- /**
- * @ORM\Entity
- * @ORM\Table(name="taxonomies")
- */
- class Taxonomy
- {
- /**
- * @ORM\Id
- * @ORM\Column(type="integer")
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- protected $id;
- /**
- * @ORM\Column(type="string", length=100)
- */
- protected $name;
- /**
- * @Gedmo\Slug(fields={"name"})
- * @ORM\Column(type="string", length=100, unique=true)
- */
- protected $slug;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement