[DDC-2313] Deep clone for DBAL QueryBuilder Created: 21/Feb/13 Updated: 18/Jun/13 Resolved: 18/Jun/13
|Project:||Doctrine 2 - ORM|
|Reporter:||Tim Mundt||Assignee:||Benjamin Eberlei|
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:
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.
|Comment by Tim Mundt [ 03/Jun/13 ]|
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?
|Comment by Marco Pivetta [ 03/Jun/13 ]|
|Comment by Benjamin Eberlei [ 18/Jun/13 ]|
Fixed in 2.4