doctrine/mongodb — Issue #43: Implement deeper cloning for nested expressions
Author: jmikola
Created: 2012-02-01 02:13:40+00:00
State: open

#42 does not handle nested expressions. We'll need to enhance the query builder cloning to go deeper.

See ORM's `__clone()` implementation: https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/QueryBuilder.php#L1097

![](http://img.photobucket.com/albums/v607/sheneedstherapy/WE-NEED-TO-GO-DEEPER.jpg)