PropelBundle icon indicating copy to clipboard operation
PropelBundle copied to clipboard

FileLocator issue on PropelBundle 4.0

Open pimpreneil opened this issue 7 years ago • 2 comments
trafficstars

Hi,

I have an issue when using PropelBundle 4.0 on a Symfony 3.4: The schema won't build: I have the following error:

The file "MyMasterBundleMySubBundle/Resources/config/schema.xml" does not exist...

After a deeper look, I have noticed that you have removed the '@' in the transformToLogicalName method of Service/SchemaLocator.php and that it is causing my error.

I don't know Symfony 3.4 and 4.0 well enough to figure out if you did this on purpose to address a future deprecation, but I am still raising an issue here as Symfony's FileLocator is still looking for a heading '@' for bundle files: https://github.com/symfony/symfony/blob/4.0/src/Symfony/Component/HttpKernel/Config/FileLocator.php#L48

Note : I know that I should not use sub-bundles nor custom bundle names but well I don't want to change for now and I hope I won't have to do it to fix this issue!

Thanks for your help

pimpreneil avatar Feb 26 '18 23:02 pimpreneil

second on this. When running php bin/console propel:model:build --verbose, i got this error

[Symfony\Component\Config\Exception\FileLocatorFileNotFoundException] The file "AppBundle/Resources/config/schema.xml" does not exist (in: /Users/yunannsnt/webdev/SymfonyStarter-3.4/app, /Users/yunannsnt/webdev/SymfonyStarter-3.4/app/Resources ).

nibsirahsieu avatar Mar 09 '18 09:03 nibsirahsieu

Same issue here. Above commit would probably do the trick.

sanders54 avatar Jun 06 '18 06:06 sanders54

All further dev and tickets should go into https://github.com/SkyFoxvn/PropelBundle as this will most likely be the follower of this now.

dereuromark avatar Nov 21 '22 12:11 dereuromark