2018-10-25 22:35:11 +02:00
|
|
|
<?php
|
2018-10-29 19:01:00 +01:00
|
|
|
|
2018-11-01 19:59:36 +01:00
|
|
|
namespace App\Entity\Source\Collection;
|
2018-10-25 22:35:11 +02:00
|
|
|
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
use Doctrine\Common\Collections\Collection;
|
2018-10-31 17:19:10 +01:00
|
|
|
use App\Entity\Attribut\MembersAttribut;
|
2018-10-28 22:31:56 +01:00
|
|
|
use Doctrine\Common\Collections\ArrayCollection;
|
2018-11-01 22:34:26 +01:00
|
|
|
|
2018-10-25 22:35:11 +02:00
|
|
|
/**
|
|
|
|
* @author kevinfrantz
|
2018-10-28 15:41:43 +01:00
|
|
|
* @ORM\Table(name="source_group")
|
2018-10-25 22:35:11 +02:00
|
|
|
* @ORM\Entity
|
|
|
|
*/
|
2018-11-01 19:59:36 +01:00
|
|
|
final class MemberCollectionSource extends AbstractCollectionSource implements MemberCollectionSourceInterface
|
2018-10-25 22:35:11 +02:00
|
|
|
{
|
2018-10-27 14:56:26 +02:00
|
|
|
use MembersAttribut;
|
2018-10-25 22:35:11 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var Collection
|
2018-10-31 21:53:30 +01:00
|
|
|
* @ORM\ManyToMany(targetEntity="AbstractSource",inversedBy="groups")
|
|
|
|
* @ORM\JoinTable(name="source_group_members")
|
2018-10-25 22:35:11 +02:00
|
|
|
*/
|
2018-10-27 14:56:26 +02:00
|
|
|
protected $members;
|
2018-10-29 19:01:00 +01:00
|
|
|
|
|
|
|
public function __construct()
|
|
|
|
{
|
2018-10-28 22:31:56 +01:00
|
|
|
parent::__construct();
|
|
|
|
$this->members = new ArrayCollection();
|
|
|
|
}
|
2018-10-25 22:35:11 +02:00
|
|
|
}
|