Closed igorw closed 12 years ago
The 2.0 branch contains the subtree split of the symfony repo so please report issues to Symfony directly
Can you please make up your mind? The tickets I filed against symfony/symfony 2 weeks ago you asked me to re-file here.
Well, here, you are saying it affects 2.0
So do the other tickets.
could you give the link to the other ticket ? Browsing closed issues in the Symfony repo is not fun
3577 is about asking a new feature, so it is not about 2.0, meaning this issue tracker should have been used :) And 3579 was about Doctrine itself (and fixed)...
But the current issue is a bug affecting 2.0 (which seems related to the DI component btw according to the place where it fails) so it should indeed go to the symfony repo.
Does that mean you will re-open 3578?
@schmittjoh could you look at it ? It looks more like an issue in the DI component than in DoctrineBundle
I'm having this error message, but in different circonstances: test environment. Looks like it's a bundle from application making it crash.
When dumping service routing.loader
, it crashes with same message as above (Cannot dump definitions which have method calls.).
I'm investigating
Crazy thing...
This is a project where the session is disabled (stateless).
In config_test.yml
this section was present:
framework:
test: ~
session:
storage_id: session.storage.filesystem
I just removed the session
section and now it works.
Don't get the relation with my bundle, but whatever.
Hope it helps
i'm having the same error, however in my case it occurs if the following conditions are met:
profiler: { only_exceptions: false }
is in the framework
node of the config_dev.yml
fileAs soon as i either remove LiipImagineBundle
or profiler: { only_exceptions: false }
, the exception is gone.
I am running into the same problem after upgrading to Symfony 2.0.15 from 2.0.9. Deactivating the profiler is not an option, because it greatly reduces debugging productivity. What can we do to mitigate this?
I never managed to reproduce the issue and so I am unable to debug it. Please provide a minimal project reproducing it.
I have worked around it by commenting line 994 in PhpDumper and replacing it with "return 'null';", which changes this method in appDevDebugProjectContainer.php (and possibly other generated files):
protected function getTemplating_Helper_FormService()
{
return $this->services['templating.helper.form'] = new \Symfony\Bundle\FrameworkBundle\Templating\Helper\FormHelper(null, array(0 => 'FrameworkBundle:Form'));
}
The first parameter null is where the workaround plays into. Since we do not use Forms in the project, it works for now.
I will compile a minimal test case for you.
Closing this as the issue has been resolved: it is a broken implementation of ObjectStorage in PHP 5.4.0
On the 2.0 branch, when using multiple entity managers and running a console command with --no-debug and --env=dev, I get:
Which originates from the
Symfony\Component\DependencyInjection\Dumper\PhpDumper
.This only happens with the debug=false and env=dev combination.
FWIW, here's a stack trace:
Side note: When removing the additional entity managers (leaving just one default one), the container compiles. Re-adding them after that does not trigger re-compilation, so it just ignores the newly added entity managers.