liz/model-console

dev-master / 0.1.x-dev 2018-01-23 10:44 UTC

This package is auto-updated.

Last update: 2024-04-13 20:29:07 UTC


README

update 2017-12-31

add default value to model if the field desc have 'DEFULT'

step 0

mv bin/ dir to project document_root
orm demo in the bin/ dir mv to your path

create database

this command will create a database for your config

    php bin/console.php orm:database:create app //config project name(in relations option)

make model

this command will make the app's models to dir /app/src/Finder and finders to dir /app/src/Model

    php bin/console.php orm:model:make app

table update

this command will update table by config file

    php bin/console.php orm:table:update app