Код: Выделить всё
Typed property App\Entity\AppRole::$uniqid must not be accessed before initialization
< /code>
Я уже провел свои исследования и обнаружил, что частные свойства должны быть инициализированы, так что это то, что я сделал: < /p>
#[ORM\Column(name: "uniqid", type: "string", length: 50, nullable: false)]
private ?string $uniqid = null;
< /code>
public function getUniqid(): ?string
{
return $this->uniqid;
}
public function setUniqid(string $uniqid): self
{
$this->uniqid = $uniqid;
return $this;
}
< /code>
So I don't understand where comes my error ?
The error trace shows that it comes from the findAll()Я что -то пропустил?>
Подробнее здесь: https://stackoverflow.com/questions/797 ... ialization