I have managed to install doctrine migrations via the command line as part of the symfony blog tutorial.
symblog tutorial part4
However im now getting class cannot be found error?
Fatal error: Class 'Doctrine\Bundle\DoctrineMigrationsBundle\DoctrineMigrationsBundle' not found in /media/sf_projects/symBlog/app/AppKernel.php on line 24
However im not sure why im getting it the path looks correct to me see screenshot below?
Found it the register path in the new version is
new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(),
You ought to change this path
new Symfony\Bundle\DoctrineMigrationsBundle\DoctrineMigrationsBundle() //old path
with this one
new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle()
and it should be right.
I got the same error in Symfony2 standard Edition (i'm using the 2.2 but I think that it's valid also for the 2.1). If it still doesn't work, you ought to install the git repository. You can do it through the official Symfony2's tutorial:
http://symfony.com/doc/current/cookbook/workflow/new_project_git.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With