From 2739ed843b085f7a8009fb203fed3fd624c3c463 Mon Sep 17 00:00:00 2001 From: guilhermeblanco Date: Thu, 28 Feb 2008 01:40:49 +0000 Subject: [PATCH] Removed support to imbricated query added yesterday (which fixed ticket #782). The same thing could be easily achieved without need of Doctrine support, as mentioned in comments. Dev team decided to drop this support for now, but are considering for 1.0 --- lib/Doctrine/Query/Abstract.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lib/Doctrine/Query/Abstract.php b/lib/Doctrine/Query/Abstract.php index e6edde935..fc7b4559e 100644 --- a/lib/Doctrine/Query/Abstract.php +++ b/lib/Doctrine/Query/Abstract.php @@ -1170,17 +1170,6 @@ abstract class Doctrine_Query_Abstract if ($value instanceof Doctrine_Expression) { $value = $value->getSql(); unset($params[$k]); - } else if (is_object($value) && $value instanceof Doctrine_Query) { // Imbricated Query? - $field = $value->getDqlPart('select'); - $field = $field[0]; - - $rstemp = $value->execute(); - - $value = array(); - - foreach ($rstemp as $key => $object) { // Create a table with values in imbricated query - array_push($value, $object->$field); - } } else { $value = '?'; }