You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This could either be a new command, or added on to the upgrade command. For any class that is a descendent of DataObject, automatically add private static $table_name = '<short class name>'; to the top of the class definition.
Seems straightforward enough, and would save a decent chunk of time having to open every PHP file in a project and make a trivial change.
The text was updated successfully, but these errors were encountered:
+100 for this. I spoke to @robbieaverill a few days ago about this on Slack. I still don't understand why a default for $table_name in framewokr itself, wasn't implemented as just using the current class' short name - ostensibly zero difference for devlopers and the database itself when upgrading from 2/3 to 4.
This could either be a new command, or added on to the
upgrade
command. For any class that is a descendent ofDataObject
, automatically addprivate static $table_name = '<short class name>';
to the top of the class definition.Seems straightforward enough, and would save a decent chunk of time having to open every PHP file in a project and make a trivial change.
The text was updated successfully, but these errors were encountered: