1
0
mirror of synced 2024-12-13 14:56:01 +03:00
This commit is contained in:
zYne 2007-08-10 20:35:25 +00:00
parent 69f1bd41bb
commit bc031289c0

View File

@ -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);