12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php
- namespace Translatable\Fixture\Document;
- use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoODM;
- use Gedmo\Mapping\Annotation as Gedmo;
- /**
- * @MongoODM\Document(collection="articles")
- */
- class SimpleArticle
- {
- /** @MongoODM\Id */
- private $id;
- /**
- * @Gedmo\Translatable
- * @MongoODM\String
- */
- private $title;
- /**
- * @Gedmo\Translatable
- * @MongoODM\String
- */
- private $content;
- public function getId()
- {
- return $this->id;
- }
- public function setTitle($title)
- {
- $this->title = $title;
- }
- public function getTitle()
- {
- return $this->title;
- }
- public function setContent($content)
- {
- $this->content = $content;
- }
- public function getContent()
- {
- return $this->content;
- }
- }
|