2.2 orm

New try. Updated Doctrine orm requirements.