浏览代码

fix access::publicationDirector type

Olivier Massot 7 月之前
父节点
当前提交
4c188ed508
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/Entity/Access/Access.php

+ 2 - 2
src/Entity/Access/Access.php

@@ -177,8 +177,8 @@ class Access implements UserInterface, PasswordAuthenticatedUserInterface
     private Collection $accessIntangibles;
 
     #[ORM\ManyToOne(inversedBy: 'publicationDirectors')]
-    #[ORM\JoinColumn(referencedColumnName: 'id', nullable: false)]
-    private Parameters $publicationDirector;
+    #[ORM\JoinColumn(referencedColumnName: 'id')]
+    private ?Parameters $publicationDirector;
 
     #[ORM\ManyToOne(inversedBy: 'teachers')]
     #[ORM\JoinColumn(referencedColumnName: 'id', nullable: true, onDelete: 'SET NULL')]