[WIP] Extract Doctrine hybrid support

phpdoc