mirror of
https://github.com/doctrine/orm.git
synced 2026-04-29 09:23:20 +02:00
DDC-2313: Deep clone for DBAL QueryBuilder #2906
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 (Feb 21, 2013).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user tcm:
This is basically a duplicate of another issue I stumbled across lately but cannot find here again. It added a **clone() function to the ORM QueryBuilder to allow this use case:
Create a base query and derive two different queries from it.
I adopted the code for the DBAL QueryBuilder which is suffering the same issue (e.g. expressions were not cloned but shared between instances). The code is tested at least for my limited use case.
@doctrinebot commented on GitHub (Feb 21, 2013):
@doctrinebot commented on GitHub (Jun 3, 2013):
Comment created by tcm:
Thanks for adding the code tags. Just updated my doctrine to 2.4-RC1 and did not find this in there. Would be nice to see this in the new version. Any obstacles I could be of help with?
@doctrinebot commented on GitHub (Jun 3, 2013):
Comment created by @ocramius:
[~tcm], there's an open PR at https://github.com/doctrine/dbal/pull/327
@doctrinebot commented on GitHub (Jun 18, 2013):
Comment created by @beberlei:
Fixed in 2.4
@doctrinebot commented on GitHub (Jun 18, 2013):
Issue was closed with resolution "Fixed"