| <?php |
| |
| |
| namespace BaclucEventPackage\NextEvent; |
| |
| |
| use BaclucC5Crud\Lib\GetterTrait; |
| use BaclucC5Crud\Lib\SetterTrait; |
| use BaclucEventPackage\Group; |
| use Doctrine\Common\Annotations\Annotation\IgnoreAnnotation; |
| use Doctrine\Common\Collections\ArrayCollection; |
| use Doctrine\ORM\Mapping\Entity; |
| use Doctrine\ORM\Mapping\Id; |
| use Doctrine\ORM\Mapping\JoinColumn; |
| use Doctrine\ORM\Mapping\JoinTable; |
| use Doctrine\ORM\Mapping\ManyToMany; |
| use Doctrine\ORM\Mapping\Table; |
| |
| /** |
| * Class ExampleEntity |
| * @IgnoreAnnotation("package") |
| * Concrete\Package\BaclucC5Crud\Src |
| * @Entity |
| * @Table(name="NextEventConfiguration") |
| */ |
| class NextEventConfiguration |
| { |
| use GetterTrait, SetterTrait; |
| /** |
| * Id of the block the configuration references |
| * @var int |
| * @Id @Column(type="integer") |
| */ |
| private $id; |
| |
| /** |
| * @var Group[] |
| * @ManyToMany(targetEntity="BaclucEventPackage\Group") |
| * @JoinTable(name="nexteventconfiguration_groups", |
| * joinColumns={@JoinColumn(name="nextEventConfigurationId", referencedColumnName="id")}, |
| * inverseJoinColumns={@JoinColumn(name="groupId", referencedColumnName="gID")} |
| * ) |
| */ |
| protected $showNextEventOfGroups; |
| |
| /** |
| * NextEventConfiguration constructor. |
| */ |
| public function __construct() |
| { |
| $this->showNextEventOfGroups = new ArrayCollection(); |
| } |
| |
| |
| } |