-
-
Notifications
You must be signed in to change notification settings - Fork 68
Open
Description
MySQL 8.0 + Symfony 7.3 + Doctrine 3.5
My Entity has a $data column like:
#[ORM\Column(type: JsonDocumentType::NAME)]
private object $data;
running a simple query:
$entities = $this->em->getRepository(MyEntity::class)->findAll();
I'm getting this error
Cannot assign array to property App\Entity\MyEntity::$data of type object
if I remove the object :
private object $data;
it works returning an array which breaks my other code, how to make it to work with objects?
Metadata
Metadata
Assignees
Labels
No labels