Преглед на файлове

fix access::publicationDirector type

Olivier Massot преди 8 месеца
родител
ревизия
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')]