python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Why Does SQL return the correct info but QueryBuilder / DQL returns NULL for joined table
I have 2 statements that I believe are identical:
SQL Version:
$em = $this->getDoctrine()->getManager();
$RAW_QUERY = 'SELECT *
FROM licences
JOIN users ON licences....
Steve
Votes: 0
Answers: 0
Symfony 4.4 how to fetch specific rows from related entity that has ManyToOne relation?
I have a User entity and a Hours entity. One user can have multiple hours. So a OneToMany for user-hours. And a ManyToOne for hours-user.
I used the symfony docs to create this. Symfony created this g...

Allart
Votes: 0
Answers: 0
Cannot assign <IdClass> to property of type <EntityClass>
I have the following entity graph:
#[ORM\Entity]
class Professional
{
#[ORM\Id]
#[ORM\Column(type: 'professional_id')]
#[ORM\GeneratedValue(strategy: 'NONE')]
private ProfessionalId $i...
BenMorel
Votes: 0
Answers: 1