Skip to content

Commit

Permalink
Merge pull request doctrine#753 from 51systems/master
Browse files Browse the repository at this point in the history
JoinedSubclassPersister doesn't properly bind on some versions of php
  • Loading branch information
guilhermeblanco committed Aug 12, 2013
2 parents b6bf47a + 27bae51 commit 0ae8aa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/Persisters/JoinedSubclassPersister.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public function executeInserts()
}

foreach ($data as $columnName => $value) {
if (!isset($id[$columnName])) {
if (!is_array($id) || !isset($id[$columnName])) {
$stmt->bindValue($paramIndex++, $value, $this->columnTypes[$columnName]);
}
}
Expand Down

0 comments on commit 0ae8aa3

Please sign in to comment.