1
0
mirror of synced 2025-01-31 04:21:44 +03:00

Merge pull request #753 from 51systems/master

JoinedSubclassPersister doesn't properly bind on some versions of php
This commit is contained in:
Guilherme Blanco 2013-08-11 20:11:11 -07:00
commit 0ae8aa36d7

View File

@ -197,7 +197,7 @@ class JoinedSubclassPersister extends AbstractEntityInheritancePersister
}
foreach ($data as $columnName => $value) {
if (!isset($id[$columnName])) {
if (!is_array($id) || !isset($id[$columnName])) {
$stmt->bindValue($paramIndex++, $value, $this->columnTypes[$columnName]);
}
}