Doctrine migration package not found - symblog

I was able to install doctrine domains through the command line as part of the symfony blog tutorial.

tutorial for symblog part4

However im now get the class could not be found error?

Fatal error: Class 'Doctrine\Bundle\DoctrineMigrationsBundle\DoctrineMigrationsBundle' not found in /media/sf_projects/symBlog/app/AppKernel.php on line 24

However, I'm not sure why I get it, the way looks right for me, see screenshot below? enter image description here

+5
source share
3 answers

Found registration path in the new version

New Doctrine \ Bundle \ MigrationsBundle \ DoctrineMigrationsBundle (),

+14
source

You have to change this way

new Symfony\Bundle\DoctrineMigrationsBundle\DoctrineMigrationsBundle() //old path

with this

new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle()

and that should be right.

Symfony2 ( 2.2, , 2.1). , git. Symfony2:

http://symfony.com/doc/current/cookbook/workflow/new_project_git.html

+2

I sent a PR with this fix

https://github.com/dsyph3r/symblog-docs/pull/43

but it seems that the author is not interested in supporting him anymore, and the blog website that he has is out of date also refers to what is in git, i.e. git host has some fixes, but the site is not regenerated.

so that you yourself generate its method, or you get stuck after the training course step by step with recent versions of symfony2 / doctrine

+1
source

All Articles