Skip to content

--haveBackend creates Models with broken Classname #154

@pascalheidmann-bedarf

Description

@pascalheidmann-bedarf

When running php sw.phar plugin:create --haveBackend --haveModels "Foobar" I will get a request to specify the main model name. Entering something like "Bar" creates a model with following file name:
'plugin:create' --haveBackend --haveModels Foobar.php instead of just Bar.php.
Same goes for the Classname and the database table itself.

References for the model in the backend controller are broken too.

Leaving out the backend solves the problem.

It seems that this is related to #108 which had a similar problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions