Rajout de doctrine/orm
[zf2.biz/galerie.git] / vendor / doctrine / orm / tests / Doctrine / Tests / Models / DDC117 / DDC117Link.php
1 <?php
2
3 namespace Doctrine\Tests\Models\DDC117;
4
5 /**
6  * Foreign Key Entity without additional fields!
7  *
8  * @Entity
9  */
10 class DDC117Link
11 {
12     /**
13      * @Id
14      * @ManyToOne(targetEntity="DDC117Article", inversedBy="links")
15      * @JoinColumn(name="source_id", referencedColumnName="article_id")
16      */
17     public $source;
18
19     /**
20      * @Id
21      * @ManyToOne(targetEntity="DDC117Article")
22      * @JoinColumn(name="target_id", referencedColumnName="article_id")
23      */
24     public $target;
25
26     public function __construct($source, $target, $description)
27     {
28         $this->source = $source;
29         $this->target = $target;
30     }
31 }