Guest User

Untitled

a guest
Aug 1st, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. Symfony2 Error: No mapping file found named
  2. /**
  3. * @ORMManyToOne(targetEntity="xxxUserBundleEntityUser")
  4. **/
  5. protected $user;
  6.  
  7. doctrine:
  8. dbal:
  9. default_connection: my_connection_name
  10. connections:
  11. fmefb:
  12. host: %database_host%
  13. dbname: %database_name%
  14. user: %database_user%
  15. password: %database_password%
  16. driver: %database_driver%
  17. port: %database_port%
  18. charset: UTF8
  19.  
  20. orm:
  21. default_entity_manager: my_entity_manager
  22. entity_managers:
  23. my_entity_manager:
  24. connection: my_connection_name
  25. mappings:
  26. CompanyNameSiteBundle: ~
  27. CompanyNameAdminBundle: ~
  28. CompanyNameSomethingElse: ~
  29.  
  30. new xxxUserBundlexxxUserBundle(),
  31.  
  32. public function registerBundles()
  33. {
  34. $bundles = array(
  35. new SymfonyBundleFrameworkBundleFrameworkBundle(),
  36. new SymfonyBundleSecurityBundleSecurityBundle(),
  37. new SymfonyBundleTwigBundleTwigBundle(),
  38. new SymfonyBundleMonologBundleMonologBundle(),
  39. new SymfonyBundleSwiftmailerBundleSwiftmailerBundle(),
  40. new SymfonyBundleDoctrineBundleDoctrineBundle(),
  41. new SymfonyBundleAsseticBundleAsseticBundle(),
  42. new SensioBundleFrameworkExtraBundleSensioFrameworkExtraBundle(),
  43. new JMSSecurityExtraBundleJMSSecurityExtraBundle(),
  44. new xxFileBundlexxFileBundle(),
  45. new xxxUserBundlexxxUserBundle(),
  46. );
  47.  
  48. if (in_array($this->getEnvironment(), array('dev', 'test'))) {
  49. $bundles[] = new SymfonyBundleWebProfilerBundleWebProfilerBundle();
  50. $bundles[] = new SensioBundleDistributionBundleSensioDistributionBundle();
  51. $bundles[] = new SensioBundleGeneratorBundleSensioGeneratorBundle();
  52. }
  53.  
  54. return $bundles;
  55. }
Add Comment
Please, Sign In to add comment