Very strange, if instead I do this: if($this->hasTimeConflict($reservProv))
It seems to work fine. I'm not sure why PHP is finding the method in this case, but not the other case. The signature is quite simple: public function hasTimeConflict(ReservProvider $otherReservProv) Very strange... On Jul 2, 2:51 pm, Steve Sanyal <steve.san...@gmail.com> wrote: > Hi, > > It seems like the base model object __call method is actually > preventing me from calling methods defined in the subclass. > > I have a model object called ReservProvider. In it, I have the > following code: > > foreach($reservProvs as $reservProv) > { > if($reservProv->hasTimeConfict($this)) > { > $reservProv->delete(); > } > } > > This code calls "hasTimeConflict" on a second reservProvider object. > However, this is failing due to the __call method in the > BaseReservProvider object: > > if (!$callable = sfMixer::getCallable('BaseReservProvider:'. > $method)) > { > throw new sfException(sprintf('Call to undefined method > BaseReservProvider::%s', $method)); > } > > I believe this code may have worked at an earlier version (1.2.5?), > but I recently upgraded to 1.2.7. Does anyone know why this might be > happening, and how I should go about enabling calls to user functions? > > Regards > Steve --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---