apply the patch from 2.4 branch : http://www.doctrine-project.org/jira/browse/DDC-1010