I am having a hard time finding the correct result for this.
I have one to one mapping. There are two tables:
/** * @ORM\\Table(name=\"users\") * @ORM\\E
Use hint HINT_FORCE_PARTIAL_LOAD to avoid lazy-loading.
... $qb->getQuery()->setHint(Query::HINT_FORCE_PARTIAL_LOAD, true);