Author: francois
Date: 2010-02-08 14:42:52 +0100 (Mon, 08 Feb 2010)
New Revision: 27734
Modified:
plugins/sfPropel15Plugin/trunk/lib/behavior/SfPropelBehaviorSymfonyBehaviors.php
Log:
[sfPropel15Plugin] Fixed Problem with return values for preDelete behavior for
SfPropelBehaviorSymfonyBehaviors (closes #7872)
Modified:
plugins/sfPropel15Plugin/trunk/lib/behavior/SfPropelBehaviorSymfonyBehaviors.php
===================================================================
---
plugins/sfPropel15Plugin/trunk/lib/behavior/SfPropelBehaviorSymfonyBehaviors.php
2010-02-08 13:19:38 UTC (rev 27733)
+++
plugins/sfPropel15Plugin/trunk/lib/behavior/SfPropelBehaviorSymfonyBehaviors.php
2010-02-08 13:42:52 UTC (rev 27734)
@@ -28,8 +28,9 @@
return <<<EOF
foreach
(sfMixer::getCallables('Base{$this->getTable()->getPhpName()}:delete:pre') as
\$callable)
{
- if (\$ret = call_user_func(\$callable, \$this, \$con))
+ if (call_user_func(\$callable, \$this, \$con))
{
+ \$con->commit();
return;
}
}
@@ -65,6 +66,7 @@
{
if (is_integer(\$affectedRows = call_user_func(\$callable, \$this, \$con)))
{
+ \$con->commit();
return \$affectedRows;
}
}
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.