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
Mapping of table name to model, e.g., ['users:Account']
--ignore-tables
array
[]
Tables to ignore for model generation, e.g., ['users']
According to the documentation, a value such as ['TableA', 'TableB'] should work.
However, the value of --ignore-tables and --table-mapping are used as a string.
So it only works for me if I specify the options and paremeters multiple times. php bin/hyperf.php gen:model --ignore-tables='case' --ignore-tables='campaign' --table-mapping=user:FooBar --table-mapping=account:AccountFoo
No idea if this is a bug or if I just have no idea how to specify the value as a real array.
In any case, one string per option is returned here:
Before you submit an issue, please be sure to search through existing issues as well as search through the documentation
Describe your question
https://hyperf.wiki/3.1/#/en/db/model?id=creating-a-model
According to the documentation, a value such as ['TableA', 'TableB'] should work.
However, the value of
--ignore-tables
and--table-mapping
are used as a string.So it only works for me if I specify the options and paremeters multiple times.
php bin/hyperf.php gen:model --ignore-tables='case' --ignore-tables='campaign' --table-mapping=user:FooBar --table-mapping=account:AccountFoo
No idea if this is a bug or if I just have no idea how to specify the value as a real array.
In any case, one string per option is returned here:
hyperf/src/database/src/Commands/ModelCommand.php
Line 148 in a42618e
The text was updated successfully, but these errors were encountered: