Commit 2739ed84 authored by guilhermeblanco's avatar guilhermeblanco

Removed support to imbricated query added yesterday (which fixed ticket #782)....

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
parent bf0ccdfa
......@@ -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 = '?';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment