فهرست منبع

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')]