Fixed internal server error, when using owner placeholder on stored label profile

This commit is contained in:
Jan Böhmer 2023-04-03 22:23:53 +02:00
parent 749e7dbdf9
commit 9244fe5944
2 changed files with 2 additions and 2 deletions

View file

@ -118,7 +118,7 @@ class PartLot extends AbstractDBElement implements TimeStampableInterface, Named
* @ORM\ManyToOne(targetEntity="App\Entity\UserSystem\User")
* @ORM\JoinColumn(name="id_owner", referencedColumnName="id", nullable=true, onDelete="SET NULL")
*/
protected ?User $owner;
protected ?User $owner = null;
public function __clone()
{

View file

@ -95,7 +95,7 @@ class Storelocation extends AbstractPartsContainingDBElement
* @ORM\ManyToOne(targetEntity="App\Entity\UserSystem\User")
* @ORM\JoinColumn(name="id_owner", referencedColumnName="id", nullable=true, onDelete="SET NULL")
*/
protected ?User $owner;
protected ?User $owner = null;
/**
* @var bool If this is set to true, only parts lots, which are owned by the same user as the store location are allowed to be stored here.