Doctrine2 port on C++ (using Qt framework)