123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- namespace Translatable\Fixture;
- use Translatable\Fixture\Template\ArticleTemplate;
- use Gedmo\Mapping\Annotation as Gedmo;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * @ORM\Entity
- */
- class TemplatedArticle extends ArticleTemplate
- {
- /**
- * @ORM\Id
- * @ORM\GeneratedValue
- * @ORM\Column(type="integer")
- */
- private $id;
- /**
- * @Gedmo\Translatable
- * @ORM\Column(type="string", length=128)
- */
- private $name;
- public function setName($name)
- {
- $this->name = $name;
- }
- public function getName()
- {
- return $this->name;
- }
- }
|