Welcome Guest, Not a member yet? Register   Sign In
Generate model based on migration or tabel scema
#1

(This post was last modified: 08-04-2021, 05:44 PM by titounnes.)

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.
Reply
#2

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. :/
Reply




Theme © iAndrew 2016 - Forum software by © MyBB