I want to extend from dbFinder providing several (read : different)
classes to have special functionality.

As i read on francois's blog, extending from dbFinder should be very
easy.
  
http://redotheweb.com/2008/09/25/sorting-by-custom-column-in-the-symfony-admin-generator/

So what i did

class MyDbFinder extends DbFinder() {
  public function doStuff() {
      return $this->...->....->...;
  }
}

No when i try to call that finder

$finder = MyDbFinder::from("ProfileProject")->doStuff();

I get this :

Undefined method *s::sfModelFinder()

Looking into the error i noticed the $finder object isn't even an
instance of MyDbFinder, but of DbFinder.
When i name my class ProfileProjectFinder it does work. Why is that ?

I need shared dbFinder functionality without having to create a finder
object each time.

Am i missing something here ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to