Skip to content

Commit

Permalink
Added ability to generate table col metadata in files that will be in…
Browse files Browse the repository at this point in the history
…cluded in Model classes
  • Loading branch information
rotimi committed Feb 23, 2023
1 parent 89c9f10 commit 174968c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ Each item in the sample config file is thoroughly described & you can specify th
The only files that get overwritten would be the ones ending with **FieldsMetadata.php**.
If you want all classes to be regenerated, you would have to manually delete them before re-running the command.

> **Note:** when you modify table or view columns in your database and you have previously generated your
classes using a config whose **store_table_col_metadata_array_in_file** entry has a value of **true**, you SHOULD
re-run this tool with the same config to update all the table column metadata files (i.e. those ending with **FieldsMetadata.php**)
so that your table / view column modifications are reflected in your application.
This re-run will not modify your Model, Record & collection class files.

The classes generated will have the directory structure below for a database with an **authors** table & a **posts** table:

```
Expand Down

0 comments on commit 174968c

Please sign in to comment.