modification of doctrine to keep compatility with gedmo and  FIX a doctrine bug http://www.doctrine-project.org/jira/browse/DDC-2726