Open dinamic opened 11 years ago
I can't understand the OS-specific behavior. May be I'm missing something?
I had a similar situation, but in my case PHPCR was the cause. It was mapping all documents, including and those in Lexik.
doctrine_phpcr:
odm:
auto_mapping: false
@aistis- you are absolutely right. I'm also using PHPCR and setting auto_mapping
to false
seems to be making it work, but it breaks pretty much half of my project. Any other solution? Ping @cedric-g
In my case, we are using just few ODM bundles, so it was not a big deal to map it manually. I would also prefer more cleaner solution while keeping auto_mapping: true
:)
Or you could just remove vendor/lexik/translation-bundle/Lexik/Bundle/TranslationBundle/Document
which seems to be fixing it for me for now. (not the most elegant way to deal with it, but I don't have time to deal with all the mapping right now..)
Has anyone cracked on why it behaviour varies between operating systems?
@dinamic We are using Vagrant + Ubuntu too and we get this every first request or console call when cache is fully cleared. On the second request, it is working fine.
I'm using the bundle on Linux and Windows machines with PHPCR and the problem is there in both environments. By default PHPCR auto maps all classes which are located in MyBundle/Document
. The problem here is that LexikTranslationBundle has MangoDB classes there and that gets things messed up. I haven't been able to get it to work no matter how many requests I do. if I don't disable auto_mapping
(as @aistis- suggested) or deleting the Document
folder from the vendor's bundle it just throws the exception you mentioned.
The problem persists in v3.1.1 Cannot test in on v4 as the app is must be compatible with Symfony 2.7 and PHP 5.4
Same on v4.0
I don't have mongodb installed, nor do I need it. Everything is stored within the mysql database. I have configured PHPCR as I'm trying out the symfony-cmf.
Consider the following output:
windows 7:
vagrant box running ubuntu:
Here's the stack generated by capifony while trying to issue deployment: