[DDC-1298] DDC117Link file got lost from 2.1.x to master somehow
This commit is contained in:
parent
f8558d7740
commit
c34612b8e9
31
tests/Doctrine/Tests/Models/DDC117/DDC117Link.php
Normal file
31
tests/Doctrine/Tests/Models/DDC117/DDC117Link.php
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Doctrine\Tests\Models\DDC117;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Foreign Key Entity without additional fields!
|
||||||
|
*
|
||||||
|
* @Entity
|
||||||
|
*/
|
||||||
|
class DDC117Link
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @Id
|
||||||
|
* @ManyToOne(targetEntity="DDC117Article", inversedBy="links")
|
||||||
|
* @JoinColumn(name="source_id", referencedColumnName="article_id")
|
||||||
|
*/
|
||||||
|
public $source;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Id
|
||||||
|
* @ManyToOne(targetEntity="DDC117Article")
|
||||||
|
* @JoinColumn(name="target_id", referencedColumnName="article_id")
|
||||||
|
*/
|
||||||
|
public $target;
|
||||||
|
|
||||||
|
public function __construct($source, $target, $description)
|
||||||
|
{
|
||||||
|
$this->source = $source;
|
||||||
|
$this->target = $target;
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user