Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Modified executeInserts method in JoinedSubclassPersister to only che…
…ck for the presence of columns in a composite primary key
  • Loading branch information
powturns authored and beberlei committed Aug 20, 2013
1 parent 465bf0f commit 9e54ddc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Doctrine/ORM/Persisters/JoinedSubclassPersister.php
Expand Up @@ -184,7 +184,9 @@ public function executeInserts()
}

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

$stmt->execute();
Expand Down

0 comments on commit 9e54ddc

Please sign in to comment.