I am using Doctrine 1.2. I would like to execute Doctrine_Query, which instead of returning Doctrine_Collection will return the class of my choice. That is, something like
$o = Doctrine_Query::create()
->from('Foo')
->execute();
$o;
usually returns a common Doctrine_Collection object. Instead, I would like it to return a Foo_Collection object, which I define elsewhere
class Foo_Collection extends Doctrine_Collection
{
public function soSomethingSpecificToAFooObject()
{
}
}
which will allow me to logically group functionality.
Is it possible? From my reading and popping the codebase, this seems to be related to hydrators, but I could not find the manual or manual page that covers what I want.
source
share