May 31, 2011
PHP Magic methods and static keywords
It turns out that calling magic methods with static keywords (like parent::) do not always work:
// Doesn't work in some PHP versions
parent::findByType($type); // findByType() is magic
A quick fix is to call the method directly using __call:
parent::__call('findByType',array($type));
Just a heads up...