Skip to content

Commit

Permalink
Fixed issue inside generated form template
Browse files Browse the repository at this point in the history
Inside the saveXXXList() method : $con attribute is passed as a
parameter to XXXPeer::doDelete() method, whereas it's not the case for
$obj->save() method. In multiple database connection environment, this
issue can lock tables.
  • Loading branch information
lcallarec committed Jul 10, 2012
1 parent 9177ece commit cc9a024
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public function save<?php echo $tables['middleTable']->getPhpName() ?>List($con
$obj = new <?php echo $tables['middleTable']->getClassname() ?>();
$obj->set<?php echo $tables['column']->getPhpName() ?>($this->object->getPrimaryKey());
$obj->set<?php echo $tables['relatedColumn']->getPhpName() ?>($value);
$obj->save();
$obj->save($con);
}
}
}
Expand Down

0 comments on commit cc9a024

Please sign in to comment.