update node entity constraints

This commit is contained in:
Simon Vieille 2022-03-14 15:44:53 +01:00
parent 7970359071
commit ea0121b4f7

View file

@ -157,12 +157,12 @@ class Node implements EntityInterface
protected $analyticReferers;
/**
* @ORM\Column(type="array")
* @ORM\Column(type="array", nullable=true)
*/
private $securityRoles = [];
/**
* @ORM\Column(type="string", length=3, options={"default"="or"})
* @ORM\Column(type="string", length=3, nullable=true)
*/
private $securityOperator = 'or';
@ -662,9 +662,9 @@ class Node implements EntityInterface
return $this;
}
public function getSecurityOperator(): ?string
public function getSecurityOperator(): string
{
return $this->securityOperator;
return $this->securityOperator ?? 'or';
}
public function setSecurityOperator(string $securityOperator): self