BC for older versions of doctrine