pvsaintpe/yii2-gii-plus

Yii 2 Gii Plus Extension

Installs: 4 376

Dependents: 1

Suggesters: 0

Security: 0

Stars: 2

Watchers: 3

Forks: 1

Open Issues: 1

Type:yii2-extension

4.3.1 2019-06-10 12:27 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.