Optimized ORM Modell

This commit is contained in:
Kevin Frantz committed 2018-09-06 14:52:01 +02:00
1 parent bccafb4740
commit 261b704017
2 files changed
+7 -2

No files matched your search

@@ -10,6 +10,8 @@ use App\Entity\SourceInterface;
*/
trait SourceAttribut {
/**
* @ORM\OneToOne(targetEntity="AbstractSource")
* @ORM\JoinColumn(name="source_id", referencedColumnName="id")
* @var SourceInterface
*/
protected $source;