-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
make:entity fails: In DoctrineHelper.php line 314: Warning: Invalid argument supplied for foreach() #989
Comments
Hmm. Can you post your versions of |
@weaverryan Here it goes: doctrine/doctrine-bundle 2.1.2 Just tried this with PHP 8.0.11 (my original post was tested with PHP 7.4.24), and got almost the same error:
|
Hmm, ok my guess is that we have a bug in DoctrineBundle LESS than 2.3 & MakerBundle 1.34.0, because we modified this behavior in that release: 9ecc684#diff-ac3a9e6886ce5b8d1d6a3742fa169ee859a8a140d1bbf8a03f1a56335607ade6 |
fixed in #993 |
Just checked again after doing a composer update and make:entity is now working, thanks for fixing! |
Hi! I use symfony 4.3.11 version and i have a same problem. i was update Maker-Bundle 1.34 and Doctrine-Bundle 2.3. But its'nt work. my composer.json
Sorry for my english. |
I've tried to create a new entity in an existing project.
Called the command make:entity, entered the name of the new Entity and right after this got the following warning:
I've checked the DoctrineHelper.php @ line 314 and the foreach() Parameter
$this->mappingDriversByPrefix
is NULL.As a workaround I've added a check if $this->mappingDriversByPrefix is not null and the make:entity is working.
However I'm not sure if this is the desired behavour.
The text was updated successfully, but these errors were encountered: