Skip to content

Commit

Permalink
Check 'alreadyInSave' before save transaction (#1309)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xfaider48 authored and marcj committed Dec 5, 2016
1 parent 3fe9d62 commit 21c75aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Propel/Generator/Builder/Om/ObjectBuilder.php
Expand Up @@ -6041,6 +6041,10 @@ protected function addSaveBody(&$script)
throw new PropelException(\"You cannot save an object that has been deleted.\");
}
if (\$this->alreadyInSave) {
return 0;
}
if (\$con === null) {
\$con = Propel::getServiceContainer()->getWriteConnection(".$this->getTableMapClass()."::DATABASE_NAME);
}
Expand Down

0 comments on commit 21c75aa

Please sign in to comment.