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