-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Warning: Illegal offset type in isset or empty in/vendor/doctrine/common/lib/Doctrine/Common/Persistence/AbstractManagerRegistry.php line 180 #11188
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
Comments
your error message tells that the error is in Doctrine Common. Why are you opening the issue in the Symfony project ? |
OK, after fixing the markup so that code snippet appear properly, it looks like an issue somewhere in the form later. Can you show how your custom logic looks like ? |
This Is happen in symfony, but i can move it. I really don't need to change the options, If I use the same options i got the error. |
I faced a similar problem.In my case the name was an instance of the entity manager itself.I was trying to modify a forms options in the |
Our "workaround" $options = $form->getConfig()->getOptions();
if (isset($options['em']) && $options['em'] instanceof EntityManagerInterface) {
// https://github.com/symfony/symfony/issues/11188
$options['em'] = 'default'; // we only have 1 entity manager, so works for now :)
} |
@cesarve77 @thedamnedrhino @ro0NL Can anyone of you fork the Symfony Standard Edition and make the changes that are necessary to reproduce your issue? |
I think it's solved with #12251 This issue is from Jun 20 2014, the PR is added on Oct 18 2014.. so it could actually be. I have no access anymore to the repo i once applied my patch to :( |
Okay, closing for now then. If anyone is still experiencing this issue, please provide a failing test case or some code to reproduce it and we can consider to reopen. |
for any reason the name is a object, this happen when I´m trying to overwrite a form type.
example:
custom type chained_select
in subscriber:
The text was updated successfully, but these errors were encountered: