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
This commit is contained in:
parent
bf0ccdfa3b
commit
2739ed843b
@ -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 = '?';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user