1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <?php
- namespace Loggable\Fixture\Document;
- /**
- * @Document
- * @gedmo:Loggable(logEntryClass="Loggable\Fixture\Document\Log\Comment")
- */
- class Comment
- {
- /**
- * @Id
- */
- private $id;
- /**
- * @String
- */
- private $subject;
- /**
- * @String
- */
- private $message;
-
- /**
- * @ReferenceOne(targetDocument="RelatedArticle", inversedBy="comments")
- */
- private $article;
- public function setArticle($article)
- {
- $this->article = $article;
- }
-
- public function getArticle()
- {
- return $this->article;
- }
- public function getId()
- {
- return $this->id;
- }
-
- public function setSubject($subject)
- {
- $this->subject = $subject;
- }
- public function getSubject()
- {
- return $this->subject;
- }
- public function setMessage($message)
- {
- $this->message = $message;
- }
- public function getMessage()
- {
- return $this->message;
- }
- }
|