Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Option namespace hasn't been defined" on generating model #1491

Closed
flyingangel opened this issue Mar 21, 2021 · 2 comments
Closed

"Option namespace hasn't been defined" on generating model #1491

flyingangel opened this issue Mar 21, 2021 · 2 comments
Assignees
Milestone

Comments

@flyingangel
Copy link

Error Option namespace hasn't been defined when generating a class with constraint relation.

There's 2 typos errors in the file Model.php

Used if ($this->modelOptions->getOption('namespace')) instead of if ($this->modelOptions->hasOption('namespace'))

A quick, dirty fix is to put --namespace="" in the command line

Devtool tag 4.0.5

@BeMySlaveDarlin
Copy link
Contributor

Fixed check behavior for namespace and abstract options on model creation

@Jeckerson
Copy link
Member

Fixed in #1494

@Jeckerson Jeckerson mentioned this issue Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants