ID-0 Added Doctrine2 support