Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Symfony2 Error: No mapping file found named
- /**
- * @ORMManyToOne(targetEntity="xxxUserBundleEntityUser")
- **/
- protected $user;
- doctrine:
- dbal:
- default_connection: my_connection_name
- connections:
- fmefb:
- host: %database_host%
- dbname: %database_name%
- user: %database_user%
- password: %database_password%
- driver: %database_driver%
- port: %database_port%
- charset: UTF8
- orm:
- default_entity_manager: my_entity_manager
- entity_managers:
- my_entity_manager:
- connection: my_connection_name
- mappings:
- CompanyNameSiteBundle: ~
- CompanyNameAdminBundle: ~
- CompanyNameSomethingElse: ~
- new xxxUserBundlexxxUserBundle(),
- public function registerBundles()
- {
- $bundles = array(
- new SymfonyBundleFrameworkBundleFrameworkBundle(),
- new SymfonyBundleSecurityBundleSecurityBundle(),
- new SymfonyBundleTwigBundleTwigBundle(),
- new SymfonyBundleMonologBundleMonologBundle(),
- new SymfonyBundleSwiftmailerBundleSwiftmailerBundle(),
- new SymfonyBundleDoctrineBundleDoctrineBundle(),
- new SymfonyBundleAsseticBundleAsseticBundle(),
- new SensioBundleFrameworkExtraBundleSensioFrameworkExtraBundle(),
- new JMSSecurityExtraBundleJMSSecurityExtraBundle(),
- new xxFileBundlexxFileBundle(),
- new xxxUserBundlexxxUserBundle(),
- );
- if (in_array($this->getEnvironment(), array('dev', 'test'))) {
- $bundles[] = new SymfonyBundleWebProfilerBundleWebProfilerBundle();
- $bundles[] = new SensioBundleDistributionBundleSensioDistributionBundle();
- $bundles[] = new SensioBundleGeneratorBundleSensioGeneratorBundle();
- }
- return $bundles;
- }
Add Comment
Please, Sign In to add comment