mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-416: [patch] findBy() and @InheritanceType("JOINED") #520
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 (Mar 12, 2010).
Jira issue originally created by user freeakk:
My tables:
hostId and xmlId are the fields of parent table.
This code gets error:
$dbObj = $em->getRepository('inventorySystem')->findOneBy(array('hostId' => $hostId, 'xmlId' => $xmlId))This code gets no error:
$dbObj = $em->getRepository('inventorySystem')->findOneBy(array('name' => $name))@doctrinebot commented on GitHub (Mar 12, 2010):
Comment created by freeakk:
SQL query:
@doctrinebot commented on GitHub (Mar 12, 2010):
Comment created by freeakk:
I rewrite Doctrine\ORM\Persisters\JoinedSubclassPersister::_getSelectEntitiesSQL() function. I don't know how it will pass unit tests, but it work for my query :) New variant of method work with fields in parent tables and left join fields in parent tables
And output sql:
@doctrinebot commented on GitHub (Mar 14, 2010):
Comment created by freeakk:
I also found a bug with double LEFT JOIN.
My patch:
@doctrinebot commented on GitHub (Mar 14, 2010):
Comment created by @beberlei:
Sorry but this is a useless patch, can you please attach it as a patch file to be applicable against the current trunk?
And for the other issue please open up a new issue with a detailed report. Also all your bug-reports up to now used your original, pretty large code blocks, its pretty hard to make a simple re-produce case out of this, could you please try to locate the problems with smaller examples? Its not that we have infinite time to implement and understand your code
@doctrinebot commented on GitHub (Mar 14, 2010):
Comment created by @guilhermeblanco:
Hi,
I generated a diff of you patch (show you should give us the code you updated) via a svn diff call.
Patch looks reasonable, but we cannot commit for 2 reasons:
So, if possible, could you try to update your patch, run our unit tests and if they all get passed, attach the svn diff version?
Cheers,
@doctrinebot commented on GitHub (Mar 14, 2010):
Comment created by @guilhermeblanco:
Broken patch (example of how a patch should be provided), DO NOT COMMIT
@doctrinebot commented on GitHub (Mar 14, 2010):
Comment created by freeakk:
Ok. Thank you. I will rewrite this patch. I need some time for install the unit tests.
@doctrinebot commented on GitHub (Mar 15, 2010):
Comment created by freeakk:
Create new diff.
Before patch and after one
@doctrinebot commented on GitHub (Mar 18, 2010):
Comment created by romanb:
This should now be fixed in trunk.
Please create a new issue for the "double left join" problem.
@doctrinebot commented on GitHub (Mar 18, 2010):
Issue was closed with resolution "Fixed"
@doctrinebot commented on GitHub (Mar 18, 2010):
Comment created by freeakk:
Thank you.
Double left join is my error: I left join inventorySystem twice: in 1 and in 17
@doctrinebot commented on GitHub (Mar 18, 2010):
Comment created by romanb:
Please create a new jira issue for that problem. Thanks.
@doctrinebot commented on GitHub (Dec 13, 2015):
Imported 2 attachments from Jira into https://gist.github.com/89a6a25f52905f6a57c4