1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <?php
-
- namespace ReferenceIntegrity\Fixture\Document\ManyNullify;
-
- use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;
-
- /**
- * @ODM\Document(collection="articles")
- */
- class Article
- {
- /**
- * @ODM\Id
- */
- private $id;
-
- /**
- * @ODM\String
- */
- private $title;
-
- /**
- * @ODM\ReferenceOne(targetDocument="Type", simple="true", inversedBy="articles")
- * @var Type
- */
- private $type;
-
- /**
- * @return mixed
- */
- public function getId()
- {
- return $this->id;
- }
-
- /**
- * @param string $title
- */
- public function setTitle($title)
- {
- $this->title = $title;
- }
-
- /**
- * @return string
- */
- public function getTitle()
- {
- return $this->title;
- }
-
- /**
- * @param Type $type
- */
- public function setType(Type $type)
- {
- $this->type = $type;
- }
-
- /**
- * @return Type
- */
- public function getType()
- {
- return $this->type;
- }
- }
|