12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- namespace Sluggable\Fixture;
- use Gedmo\Mapping\Annotation as Gedmo;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * @ORM\Entity
- */
- class Identifier
- {
- /**
- * @ORM\Id
- * @Gedmo\Slug(separator="_", updatable=false, fields={"title"})
- * @ORM\Column(length=32, unique=true)
- */
- private $id;
- /**
- * @ORM\Column(length=32)
- */
- private $title;
- public function getId()
- {
- return $this->id;
- }
- public function setTitle($title)
- {
- $this->title = $title;
- }
- public function getTitle()
- {
- return $this->title;
- }
- }
|