i have a phql piece like the one below:
$result = $this->di['modelsManager']->createBuilder() ->addFrom('MyModel', 'm') ->columns(['*']) ->getQuery() ->execute();
Let's assume i have subclasses MyModelA and MyModelB
Is there a way to hijack
->execute() to use a factory that would generate my subclasses and return a ResultSet\Complex with those ?