Closed luebbert42 closed 12 years ago
Works for me with cache enabled, I am not able to reproduce this right now. Have you got any news on this issue?
It's probably because I use a mix of Zend-Framework-Camel-Case-Classes ("Applicaton_Model_Something") and namespaces... I did not work on this one again (still pretending that the app will always be in dev mode ;-)).
ah, I forgot: I tried it with the sandbox app as well and it did not work for me. I'll repeat this test and post an update to this issue.
Ok let me know. You were using the Resource Loader from zf2?
I had a further look on it, yet with not much success. The sandbox project works for me too, there is something wrong in my project.
I think I figured out that for some reason the classes in the repository-directory are not found (I used the same structure like the sandbox project). I tried to instantiate other objects like models or services in the cached ServiceContainer, everything works but not repositories. Strange ... and lots of components interacting with each other. (and no I don't expect any help on this based on this problem description ;-)
oh, that was extremely stupid and n00bish: Sleeping over it and starting again I realized that some of my files were named incorrectly:
instead of FooRepository.php some of them were called FooRespository.php (with extra 's')
The autoloader could not find them once the caching was enabled. Closing this issue and shaming for myself.
Ok, thank you for keeping me informed!
when I set: bootstrap.container.symfony.cache = true
the application "crashes", i.e. it won't find the classes/objects. I guess that the special LosoLib Autoloader is either not included or too late (after Symfony reads the ServiceContainer.php).
I'll try to find out what's going on later/tomorrow, but maybe you have an idea given this bug description?