浏览代码

minor fixes

Olivier Massot 11 月之前
父节点
当前提交
3cf72dd234
共有 2 个文件被更改,包括 4 次插入0 次删除
  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