Repository::checkEntityClass is now protected
Added methods beforeCreate, beforeUpdate and beforePersist
Merge branch 'repositoryImprovements' into develop