fixed DC-884

link: http://doctrine-project.org/jira/browse/DC-884