CodeIgniter Forums

Full Version: Generate model based on migration or tabel scema
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, CI4 developer team.
I have a suggestion, what if generate model is based on migration or schema database? so that the "allow-field" and "primary key" can be automatically filled when the model is created with the php spark make:model command.

I really hope it can happen. Thank you.
If you’d like to try implementing this we’d be glad to receive a PR! Incidentally, I have a package for various database translations (Tatter\Schemas) and generating models from a database or schema user on the “to do” list - can’t say when it will happen though, busy times. :/