There has been work ongoing to modify the mapping system and remove autodetection.
https://github.com/fabpot/symfony/pull/264 http://groups.google.com/group/symfony-devs/browse_thread/thread/8a56914be2d5a322 t On Sat, Dec 11, 2010 at 20:59, ev0 <dark.shr...@gmx.net> wrote: > Hey, > > I have exactly the same problem and I guess I found why this is > happening. I'm developing on a windows machine (apache+php 5.3.x) and > my production server is a linux machine (nginx+php 5.3.x). After some > source-crawling I found this: > > File: symfony2/src/Symfony/Bundle/DoctrineBundle/DependencyInjection/ > DoctrineExtension.php > Method (static): detectMetadataDriver(...) > > This method is where symfony2 tries to detect which driver to use for > the bundles and glob() returns different values on windows and linux. > > This command: > php -r "var_dump(glob('/srv/http/nginx/symfony2site/src/Application/ > HelloBundle/Resources/config/doctrine/metadata/orm/*.xml'));" > > Results on linux in: > bool(false) > > and on windows in: > array(0) { } > > By using "count(glob(...))" it returns "int(1)" on linux and "int(0)" > on windows and this is why the metadata_driver is set to "xml". I > checked the php api and it says that glob() behaves differently on > various systems (http://de3.php.net/manual/en/function.glob.php). > > Someone needs to file a ticket I guess :) > > On Dec 9, 3:22 am, Marijn <marijn.huizendv...@gmail.com> wrote: > > Hi everybody, > > > > I'm having some trouble with a small test application which won't run > > on my remote server. > > I keep getting the following error: > > > > No mapping file found named > > 'Application.ServiceBundle.Entity.Service.dcm.xml' for class > > 'Application\ServiceBundle\Entity\Service'. > > > > My entities are mapped by annotations, prefixed with the latest orm > > namespace addition (e.g. orm:Entity). > > This problem only occurs on my remote server. But it's running the > > exact same code as my local copy which behaves as expected. > > > > I'm having trouble debugging this since I cannot inspect if the > > annotation loader is instantiated correctly. > > > > Is there any setting that can overrule this? > > > > Kindest regards, > > > > Marijn > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en