Browse Source

minor fixes

Olivier Massot 11 tháng trước cách đây
mục cha
commit
3cf72dd234
2 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 3 0
      src/Entity/Booking/AbstractBooking.php
  2. 1 0
      src/Entity/Message/Email.php

+ 3 - 0
src/Entity/Booking/AbstractBooking.php

@@ -32,6 +32,9 @@ abstract class AbstractBooking
     #[ORM\GeneratedValue]
     protected ?int $id = null;
 
+    #[ORM\Column(length: 255, nullable: false)]
+    protected string $discr;
+
     #[ORM\Column]
     protected string $name;
 

+ 1 - 0
src/Entity/Message/Email.php

@@ -56,6 +56,7 @@ class Email extends AbstractMessage
         $this->reports = new ArrayCollection();
         $this->files = new ArrayCollection();
         $this->tags = new ArrayCollection();
+        parent::__construct();
     }
 
     public function getDiscr(): ?string