[DDC-3152] Fix redeclaration of methods on entity generation update

The `EntityGenerator` does case-sensitive checks for existing methods on update. This can lead to a PHP fatal error because of illegal method redeclaration if the same methods with another case already exist in the entity class.
Method names are now lowercased for comparison to come around this issue.