Skip to content

Commit cc9a024

Browse files
author
lcallarec
committed
Fixed issue inside generated form template
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.
1 parent 9177ece commit cc9a024

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data/generator/sfPropelForm/default/template/sfPropelFormGeneratedTemplate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function save<?php echo $tables['middleTable']->getPhpName() ?>List($con
129129
$obj = new <?php echo $tables['middleTable']->getClassname() ?>();
130130
$obj->set<?php echo $tables['column']->getPhpName() ?>($this->object->getPrimaryKey());
131131
$obj->set<?php echo $tables['relatedColumn']->getPhpName() ?>($value);
132-
$obj->save();
132+
$obj->save($con);
133133
}
134134
}
135135
}

0 commit comments

Comments
 (0)