Skip to content

gii/model --tableName="*" will generate activeRecord for table that I do not need it,like table migrations #535

@wigginskuang

Description

@wigginskuang

What steps will reproduce the problem?

    $this->run("gii/model", [
            "interactive" => false,
            'tableName' => "*",
            "ns" => "common\\models\\base",
        ]);

What's expected?

    $this->run("gii/model", [
            "interactive" => false,
            'tableName' => "*",
            'excluded'=>["migrations",...]
            "ns" => "common\\models\\base",
        ]);

What do you get instead?

Additional info

Q A
Yii version 2.0.45.
PHP version 7.4
Database version mariadb-10.6.8
Operating system linux

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions