Doctrine ORM : Joined table inheritance

Related to this previous topic : Database : Account table with Joined Tables Inheritance I’ve created a joined tables inheritance in my database (MySQL) : client_id attributes are both PK and FK. Now I need to represent it with Doctrine ORM but I can’t find a solution of how to make that. I created, with… Read More Doctrine ORM : Joined table inheritance

Doctrine says Entity "has no field or association" used in a WHERE query, but it surely does

When I execute this query: $array_ids_items = $this->em->createQuery( ‘SELECT i.id, i.id_alt FROM App\Entity\ItemComunicacao i WHERE i.id_tarefa IS NULL AND i.classificacao.abrir_tarefa = TRUE’ )->getArrayResult(); I get the error "Class App\Entity\ItemComunicacao has no field or association named classificacao.abrir_tarefa" But field ItemComunicacao.comunicacao surely exists: /** * @ORM\ManyToOne(targetEntity=ClassificacaoComunicacao::class) */ private ?ClassificacaoComunicacao $classificacao; and so does field ClassificacaoComunicacao.abrir_tarefa: /** *… Read More Doctrine says Entity "has no field or association" used in a WHERE query, but it surely does