Commit bc031289 authored by zYne's avatar zYne

fixes #425

parent 69f1bd41
......@@ -347,8 +347,6 @@ class Doctrine_Connection_UnitOfWork extends Doctrine_Connection_Module
}
foreach ($v->getInsertDiff() as $r) {
$assocRecord = $assocTable->create();
$assocRecord->set($rel->getForeign(), $r);
$assocRecord->set($rel->getLocal(), $record);
......@@ -426,7 +424,7 @@ class Doctrine_Connection_UnitOfWork extends Doctrine_Connection_Module
$record->preUpdate($event);
$record->getTable()->getRecordListener()->preUpdate($event);
if ( ! $event->skipOperation) {
$array = $record->getPrepared();
......@@ -466,7 +464,7 @@ class Doctrine_Connection_UnitOfWork extends Doctrine_Connection_Module
. ' WHERE ' . implode(' = ? AND ', $record->getTable()->getPrimaryKeys())
. ' = ?';
$stmt = $this->conn->getDbh()->prepare($sql);
$stmt = $this->conn->prepare($sql);
$stmt->execute($params);
$record->assignIdentifier(true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment