mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-279: Custom repository method find returns a empty associated class #346
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Jan 27, 2010).
Jira issue originally created by user kidh0:
When I try to use a custom repository, as below:
It returns the Administrador object, but the relations with PessoaFisica comes empty.
The generated SQL is right, with all the joins and is returning the right values, but the object no.
DQL dump:
SQL dump:
Result dump:
@doctrinebot commented on GitHub (Jan 27, 2010):
Comment created by @beberlei:
I committed a testcase that shows it works:
@doctrinebot commented on GitHub (Jan 28, 2010):
Comment created by kidh0:
I customized your test do reflect my exactly situation, and it really works.
But what I commit a mistake, isn't the getArrayResult() method that I have a problem, is the getSingleResult() method
I attached the adapted test case
@doctrinebot commented on GitHub (Jan 28, 2010):
Comment created by @beberlei:
Updated smaller test-case that still shows the failure.
@doctrinebot commented on GitHub (Jan 29, 2010):
Comment created by romanb:
Should be fixed now.
@doctrinebot commented on GitHub (Jan 29, 2010):
Issue was closed with resolution "Fixed"
@doctrinebot commented on GitHub (Dec 13, 2015):
Imported 3 attachments from Jira into https://gist.github.com/a5a82df42d5abbea1e05