Lightweight export as of doctrine/doctrine2#543

see doctrine/doctrine2#543