Hop hop
Hop hop

Reputation: 856

Symfony 2.1.7 and doctrine migrations bundle error

I am following this tutorial: http://tutorial.symblog.co.uk/docs/extending-the-model-blog-comments.html#doctrine-2-migrations

1) Installing Doctrine migrations bundle

1.1) - adding

 "doctrine/migrations": "dev-master",
 "doctrine/doctrine-migrations-bundle": "dev-master"

to composer.json

1.2) running

 php composer.phar update

2) adding

new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(),

in AppKernel.php

3) Running

php app/console doctrine:migrations:diff

this should run the command and find the differences between the current entities and the database, yes? But I get an error instead:

 Fatal error: Class 'Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle' not found in D:\xampp\htdocs\symblog.dev\app\AppKernel.php on line 23

This is exactly the line of (2.)

Can you help me out? Any advice is welcome!

Upvotes: 2

Views: 2741

Answers (1)

gremo
gremo

Reputation: 48899

I think the bundle was renamed in the meanwhile. Try: (updated question):

// app/AppKernel.php
public function registerBundles()
{
    $bundles = array(
        //...
        new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(),
    );
}

See DoctrineMigrationsBundle documentation and DoctrineMigrationsBundle class.

Upvotes: 3

Related Questions