1
0
mirror of synced 2024-12-13 14:56:01 +03:00
This commit is contained in:
zYne 2007-08-13 21:51:23 +00:00
parent 5fe334646a
commit 46154c5682

View File

@ -882,10 +882,10 @@ class Doctrine_Hydrate extends Doctrine_Object implements Serializable
$identifier = $this->_conn->quoteIdentifier($tableAlias . $field);
if ($index > 0) {
$b[] = '(' . $identifier . ' = ' . $value
$b[] = '(' . $identifier . ' = ' . $this->_conn->quote($value)
. ' OR ' . $identifier . ' IS NULL)';
} 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)) {
$parse = true;
foreach ($data as $key => $value) {