-
Notifications
You must be signed in to change notification settings - Fork 630
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
generate entity from webtools does not work #1415
Comments
Can you specify what exactly entities or which part of WebTools? |
For every entity does not work. |
What fields and checkboxes do you select? |
Exactly how is on the screen. |
Exactly de same trouble, with:
|
I had the same problem. I solved removing the options from config's database array. return new Config([
'database' => [
'adapter' => 'Mysql',
'host' => getenv('MYSQL_HOST') ?: '',
'username' => getenv('MYSQL_USER') ?: '',
'password' => getenv('MYSQL_PASSWORD') ?: '',
'dbname' => getenv('MYSQL_DATABASE') ?: '',
'charset' => 'utf8',
// 'options' => [
// PDO::ATTR_EMULATE_PREPARES => false,
// PDO::ATTR_STRINGIFY_FETCHES => false,
// ]
],
'application' => [
'modelsDir' => '/models/',
'controllersDir' => '/controllers/',
'migrationsDir' => '/migrations/',
'baseUri' => '/',
]
]); After create the models, return with the options. It's happening because before adapter instance, there are some lines creating a condition that removes all database config in if (isset($configArray['options'])) {
$configArray = $configArray['options'];
}
/** @var AbstractPdo $db */
$db = new $adapterName($configArray); It's a little weird, I tried to understand why, but I can't. That's the file and line:
|
Will be released in next version. |
Expected and Actual Behavior
Generate entity from webtools does not work. After click button "Generate" nothing do. Also I don't see any errors on screen.
The text was updated successfully, but these errors were encountered: