Doctrine2 extension