|
WorkbenchPreparationForDoctrinePlugin
This page shows you how you should prepare the Workbench application before using it with the plugin
Featured How to prepare MySQL Workbench for use with the Doctrine pluginPlease read the following section carefully, because this may be important for you. Recommendations on Table Naming
Plural Table Names Result in Singular ORM ClassesThe plugin has built-in functionality to automatically detect and singularize table names. This means, if you declare a table "Persons" in Workbench it will result in a Doctrine/PHP class "Person". Note, the singularization process does not work for collective names ("Personnel", "Cast", ...) and certain special cases. You can read more in the plugin code. Changing the Default Primary Key and Associative Table Naming ConventionsMySQL Workbench comes with badly defaulted naming conventions, such as VARCHAR(45) for the default data type. The MySQL developers tried to be smart, assuming people would immediately be disturbed by these odd values and change them, but in effect, most people don't care at all. As a consequence, the chosen defaults enforce bad naming conventions and data type selection. Thus, it is more than recommended to adjust the naming conventions to your own needs. To do so, go to Tools -> Preferences..., tab Model and change the default settings. An example is shown in the table below.
| |||||||||
Thanks!!!!
Thank You!
Greetings from Estonia