Hellom
I build my own model generator, that does exactly what I need:
1.) Split the Classes in two files: (one generated base class and one implementation file, that is only created, but never changed)
2.) Gives me an option to singularize my class names, so I automatically get the Classname "User" from my table "users"…
3.) change the getter function name for relations: if it is hasOne, the name is singular and if it is hasMany it is plural like this: hasOne: getUser()… hasMany: getUsers()
4.) generate constants for the field names, so I get autocompletion when working with the fieldnames…
This works great for generating classes for the complete DB in one run
So, if you are interested, send me a PN…
Greetings,
Urkman