fixes #418
This commit is contained in:
parent
5fe334646a
commit
46154c5682
@ -882,10 +882,10 @@ class Doctrine_Hydrate extends Doctrine_Object implements Serializable
|
|||||||
$identifier = $this->_conn->quoteIdentifier($tableAlias . $field);
|
$identifier = $this->_conn->quoteIdentifier($tableAlias . $field);
|
||||||
|
|
||||||
if ($index > 0) {
|
if ($index > 0) {
|
||||||
$b[] = '(' . $identifier . ' = ' . $value
|
$b[] = '(' . $identifier . ' = ' . $this->_conn->quote($value)
|
||||||
. ' OR ' . $identifier . ' IS NULL)';
|
. ' OR ' . $identifier . ' IS NULL)';
|
||||||
} else {
|
} else {
|
||||||
$b[] = $identifier . ' = ' . $value;
|
$b[] = $identifier . ' = ' . $this->_conn->quote($value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -987,7 +987,6 @@ class Doctrine_Hydrate extends Doctrine_Object implements Serializable
|
|||||||
}
|
}
|
||||||
|
|
||||||
while ($data = $stmt->fetch(Doctrine::FETCH_ASSOC)) {
|
while ($data = $stmt->fetch(Doctrine::FETCH_ASSOC)) {
|
||||||
|
|
||||||
$parse = true;
|
$parse = true;
|
||||||
|
|
||||||
foreach ($data as $key => $value) {
|
foreach ($data as $key => $value) {
|
||||||
|
Loading…
Reference in New Issue
Block a user