Skip to content

Commit 174968c

Browse files
author
rotimi
committed
Added ability to generate table col metadata in files that will be included in Model classes
1 parent 89c9f10 commit 174968c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ Each item in the sample config file is thoroughly described & you can specify th
5959
The only files that get overwritten would be the ones ending with **FieldsMetadata.php**.
6060
If you want all classes to be regenerated, you would have to manually delete them before re-running the command.
6161

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

6470
```

0 commit comments

Comments
 (0)