Development

#1476 ([bug] propel.builder.addBehaviors (quick fix))

You must first sign up to be able to contribute.

Ticket #1476 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

[bug] propel.builder.addBehaviors (quick fix)

Reported by: Paul.Markovich Assigned to:
Priority: major Milestone: 1.0.0
Component: Version: 1.0.0-rc1
Keywords: Cc:
Qualification:

Description

Enabling propel.builder.addBehaviors in 1.0.0-rc2 adds the following to the /lib/om/BaseClass.php file

  public function __call($method, $parameters)
  {
    if (!$callable = sfMixer::getCallable('BaseCategory:'.$method))
    {
      throw new sfException(sprintf('Call to undefined method BaseCategory::%s', $method));
    }

    array_unshift($arguments, $this);

    return call_user_func_array($callable, $arguments);
  }



SOLUTION

The $parameters in the method signature should be changed to $arguments

Change History

02/18/07 09:23:39 changed by fabien

  • status changed from new to closed.
  • resolution set to fixed.
  • milestone set to 1.0.0.

fixed