Closed flyingangel closed 3 years ago
Error Option namespace hasn't been defined when generating a class with constraint relation.
Option namespace hasn't been defined
There's 2 typos errors in the file Model.php
Model.php
Used if ($this->modelOptions->getOption('namespace')) instead of if ($this->modelOptions->hasOption('namespace'))
if ($this->modelOptions->getOption('namespace'))
if ($this->modelOptions->hasOption('namespace'))
A quick, dirty fix is to put --namespace="" in the command line
--namespace=""
Devtool tag 4.0.5
Fixed check behavior for namespace and abstract options on model creation
namespace
abstract
Fixed in #1494
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 ofif ($this->modelOptions->hasOption('namespace'))
A quick, dirty fix is to put
--namespace=""
in the command lineDevtool tag 4.0.5