Made SQL query in versionizeRecord() conform to DBAL (use OR instead of ||).