Throw exception for older orm versions