fix doctrine problem https://github.com/doctrine/doctrine2/pull/392