Author: francois
Date: 2010-02-05 12:10:27 +0100 (Fri, 05 Feb 2010)
New Revision: 27588

Modified:
   
plugins/sfPropel15Plugin/trunk/lib/behavior/SfPropelBehaviorSymfonyBehaviors.php
Log:
[sfPropel15Plugin] Changed the symfony propel behavior to accomodate the 
changes in Propel Object Builder

Modified: 
plugins/sfPropel15Plugin/trunk/lib/behavior/SfPropelBehaviorSymfonyBehaviors.php
===================================================================
--- 
plugins/sfPropel15Plugin/trunk/lib/behavior/SfPropelBehaviorSymfonyBehaviors.php
    2010-02-05 11:09:15 UTC (rev 27587)
+++ 
plugins/sfPropel15Plugin/trunk/lib/behavior/SfPropelBehaviorSymfonyBehaviors.php
    2010-02-05 11:10:27 UTC (rev 27588)
@@ -88,7 +88,7 @@
 EOF;
   }
 
-  public function objectMethods()
+  public function objectCall()
   {
     if ($this->isDisabled())
     {
@@ -96,20 +96,10 @@
     }
 
     return <<<EOF
-
-/**
- * Calls methods defined via {...@link sfMixer}.
- */
-public function __call(\$method, \$arguments)
+if (\$callable = sfMixer::getCallable('Base{$this->getTable()->getPhpName()}:' 
. \$name))
 {
-  if (!\$callable = 
sfMixer::getCallable('Base{$this->getTable()->getPhpName()}:'.\$method))
-  {
-    throw new sfException(sprintf('Call to undefined method 
Base{$this->getTable()->getPhpName()}::%s', \$method));
-  }
-
-  array_unshift(\$arguments, \$this);
-
-  return call_user_func_array(\$callable, \$arguments);
+  array_unshift(\$params, \$this);
+  return call_user_func_array(\$callable, \$params);
 }
 
 EOF;

-- 
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.

Reply via email to