Browse Source

fix access::publicationDirector type

Olivier Massot 8 tháng trước cách đây
mục cha
commit
4c188ed508
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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')]