ivan-chkv/yii2-gii-plus

This package is abandoned and no longer maintained. No replacement package was suggested.

Yii 2 Gii Plus Extension

Installs: 823

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 3

Type:yii2-extension

2.0.2 2016-11-15 14:21 UTC

This package is not auto-updated.

Last update: 2019-02-20 18:43:14 UTC


README

Yii 2 Gii Plus Extension

Base Model Generator

yii gii/base_model --interactive=0

This command generates base models like the following:

  • models/base/ModelBase.php
  • models/query/base/ModelQueryBase.php

Custom Model Generator

yii gii/custom_model --interactive=0

This command generates base models like the following:

  • models/Model.php
  • models/query/ModelQuery.php

After Custom Models!

You should regenerate base models after custom models twice.

yii gii/base_model --interactive=0 --overwrite=1
yii gii/base_model --interactive=0 --overwrite=1

A first regeneration inserts relations. A second regeneration updates phpDoc @return directives.