Posts by Thiago Rosa • 101 points
2 posts
-
0
votes1
answer38
viewsA: DQL query using oneToMany in WHERE
I was able to figure out the problem. It was the One-To-Many Bidirectional mapping between Service and Pricing. I left the Service class like this /** * @OneToMany(targetEntity="Precificacao",…
-
0
votes1
answer38
viewsQ: DQL query using oneToMany in WHERE
This query does not work: public function getByUnidadeAnoSemestre(int $unidadeId, int $ano, int $semestre) : array { $query = $this->em->createQuery( 'SELECT s,u,p FROM ' . Servico::class . '…