mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
32 lines
861 B
PHP
32 lines
861 B
PHP
<?php
|
|
|
|
namespace App\Entity\Meta\Relation\Parent;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
use Doctrine\Common\Collections\Collection;
|
|
|
|
/**
|
|
* @author kevinfrantz
|
|
* @ORM\Entity()
|
|
*/
|
|
class CreatorRelation extends AbstractParentRelation implements CreatorRelationInterface
|
|
{
|
|
/**
|
|
* @ORM\ManyToMany(targetEntity="CreatorRelation",mappedBy="childs")
|
|
*
|
|
* @var Collection|CreatorRelationInterface[]
|
|
*/
|
|
protected $parents;
|
|
|
|
/**
|
|
* @ORM\ManyToMany(targetEntity="CreatorRelation",inversedBy="parents")
|
|
* @ORM\JoinTable(name="meta_relation_childs",
|
|
* joinColumns={@ORM\JoinColumn(name="relation_id", referencedColumnName="id")},
|
|
* inverseJoinColumns={@ORM\JoinColumn(name="child_id", referencedColumnName="id")}
|
|
* )
|
|
*
|
|
* @var Collection|CreatorRelationInterface[]
|
|
*/
|
|
protected $childs;
|
|
}
|