Skip to content

Commit 21c75aa

Browse files
Xfaider48marcj
authored andcommitted
Check 'alreadyInSave' before save transaction (#1309)
1 parent 3fe9d62 commit 21c75aa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Propel/Generator/Builder/Om/ObjectBuilder.php

+4
Original file line numberDiff line numberDiff line change
@@ -6041,6 +6041,10 @@ protected function addSaveBody(&$script)
60416041
throw new PropelException(\"You cannot save an object that has been deleted.\");
60426042
}
60436043
6044+
if (\$this->alreadyInSave) {
6045+
return 0;
6046+
}
6047+
60446048
if (\$con === null) {
60456049
\$con = Propel::getServiceContainer()->getWriteConnection(".$this->getTableMapClass()."::DATABASE_NAME);
60466050
}

0 commit comments

Comments
 (0)