123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- namespace Sluggable\Fixture;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * @ORM\Entity
- */
- class Comment
- {
- /**
- * @ORM\Id
- * @ORM\GeneratedValue
- * @ORM\Column(type="integer")
- */
- private $id;
- /**
- * @ORM\Column(type="text")
- */
- private $message;
- /**
- * @ORM\ManyToOne(targetEntity="TranslatableArticle", inversedBy="comments")
- */
- private $article;
- public function setArticle(TranslatableArticle $article)
- {
- $this->article = $article;
- }
- public function getId()
- {
- return $this->id;
- }
- public function setMessage($message)
- {
- $this->message = $message;
- }
- public function getMessage()
- {
- return $this->message;
- }
- }
|