|
|
@@ -11,6 +11,7 @@ use App\Entity\Core\Tagg;
|
|
|
use App\Entity\Product\Equipment;
|
|
|
use App\Entity\Traits\ActivityYearTrait;
|
|
|
use App\Enum\Booking\VisibilityEnum;
|
|
|
+use Doctrine\Common\Collections\ArrayCollection;
|
|
|
use Doctrine\Common\Collections\Collection;
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
|
|
@@ -53,6 +54,13 @@ abstract class AbstractBooking
|
|
|
#[ORM\ManyToMany(targetEntity: Tagg::class, inversedBy: 'bookings', cascade: ['persist'], orphanRemoval: false)]
|
|
|
protected Collection $tags;
|
|
|
|
|
|
+ public function __construct()
|
|
|
+ {
|
|
|
+ $this->organizer = new ArrayCollection();
|
|
|
+ $this->equipments = new ArrayCollection();
|
|
|
+ $this->tags = new ArrayCollection();
|
|
|
+ }
|
|
|
+
|
|
|
public function getId(): ?int
|
|
|
{
|
|
|
return $this->id;
|