Adding a patch from http://www.doctrine-project.org/jira/browse/DC-585 that fixes a specfic mysql quoting issue we saw after updating to this version of doctrine (github version).