Update to 0.5 version of doctrine.