Changeset 5088
- Timestamp:
- 10/15/08 20:09:04 (9 months ago)
- Location:
- branches
- Files:
-
- 2 modified
-
1.0/lib/Doctrine/Query/Registry.php (modified) (2 diffs)
-
1.1/lib/Doctrine/Query/Registry.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/lib/Doctrine/Query/Registry.php
r4845 r5088 37 37 public function add($key, $query) 38 38 { 39 if ($query instanceof Doctrine_Query) { 40 $query = clone $query; 41 } 42 39 43 if (strpos($key, '/') === false) { 40 44 $this->_queries[$key] = $query; … … 66 70 } 67 71 68 return $query;72 return clone $query; 69 73 } 70 74 -
branches/1.1/lib/Doctrine/Query/Registry.php
r4845 r5088 37 37 public function add($key, $query) 38 38 { 39 if ($query instanceof Doctrine_Query) { 40 $query = clone $query; 41 } 42 39 43 if (strpos($key, '/') === false) { 40 44 $this->_queries[$key] = $query; … … 66 70 } 67 71 68 return $query;72 return clone $query; 69 73 } 70 74