Hey everyone,

I'm starting to get my Symfony2 project off the ground and need to
migrate the 1000's (100,000's) of rows from my old DB into the new
schema created by Doctrine2.

I came here because I was getting this error on doctrine:data:load:
C:\Website\3.0\Symfony>php app/console doctrine:data:load
PHP Fatal error:  Class 'Doctrine\Common\DataFixtures\Loader' not
found in C:\Scaleform\Website\3.0\Symfony\vendor\symfony\src\Symfony
\Bundle\DoctrineAbstractBundle\Common\DataFixtures\Loader.php on line
11
PHP Stack trace:
PHP   1. {main}() C:\Scaleform\Website\3.0\Symfony\app\console:0
PHP   2. Symfony\Component\Console\Application->run() C:\Scaleform
\Website\3.0\Symfony\app\console:16
PHP   3. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() C:
\Scaleform\Website\3.0\Symfony\vendor\symfony\src\Symfony\Component
\Console\Application.php:119
PHP   4. Symfony\Component\Console\Application->doRun() C:\Scaleform
\Website\3.0\Symfony\vendor\symfony\src\Symfony\Bundle\FrameworkBundle
\Console\Application.php:75
PHP   5. Symfony\Component\Console\Command\Command->run() C:\Scaleform
\Website\3.0\Symfony\vendor\symfony\src\Symfony\Component\Console
\Application.php:193
PHP   6. Symfony\Bundle\DoctrineBundle\Command
\LoadDataFixturesDoctrineCommand->execute() C:\Scaleform\Website
\3.0\Symfony\vendor\symfony\src\Symfony\Component\Console\Command
\Command.php:188
PHP   7. Symfony\Component\ClassLoader\UniversalClassLoader-
>loadClass() C:\Scaleform\Website\3.0\Symfony\app\bootstrap.php.cache:
0
PHP   8. require() C:\Scaleform\Website\3.0\Symfony\app
\bootstrap.php.cache:1933

Fatal error: Class 'Doctrine\Common\DataFixtures\Loader' not found in
C:\Scaleform\Website\3.0\Symfony\vendor\symfony\src\Symfony\Bundle
\DoctrineAbstractBundle\Common\DataFixtures\Loader.php on line 11

Call Stack:
    0.0004     328672   1. {main}() C:\Scaleform\Website\3.0\Symfony
\app\console:0
    0.2898    6988416   2. Symfony\Component\Console\Application-
>run() C:\Scaleform\Website\3.0\Symfony\app\console:16
    0.3022    7185952   3. Symfony\Bundle\FrameworkBundle\Console
\Application->doRun() C:\Scaleform\Website\3.0\Symfony\vendor\symfony
\src\Symfony\Component\Console\Application.php:119
    0.3022    7185952   4. Symfony\Component\Console\Application-
>doRun() C:\Scaleform\Website\3.0\Symfony\vendor\symfony\src\Symfony
\Bundle\FrameworkBundle\Console\Application.php:75
    0.3037    7185984   5. Symfony\Component\Console\Command\Command-
>run() C:\Scaleform\Website\3.0\Symfony\vendor\symfony\src\Symfony
\Component\Console\Application.php:193
    0.3043    7186288   6. Symfony\Bundle\DoctrineBundle\Command
\LoadDataFixturesDoctrineCommand->execute() C:\Scaleform\Website
\3.0\Symfony\vendor\symfony\src\Symfony\Component\Console\Command
\Command.php:188
    0.5637    9578888   7. Symfony\Component\ClassLoader
\UniversalClassLoader->loadClass() C:\Scaleform\Website\3.0\Symfony\app
\bootstrap.php.cache:0
    0.5670    9586352   8. require('C:\Scaleform\Website\3.0\Symfony
\vendor\symfony\src\Symfony\Bundle\DoctrineAbstractBundle\Common
\DataFixtures\Loader.php') C:\Scaleform\Website\3.0\Symfony\app
\bootstrap.php.cache:1933


According to this blog post:
http://symfony.com/blog/symfony-and-doctrine-2

the YAML method of importing data is dead in Symfony2.  So in this
case what is the recommended way of programatically dumping an old
database and importing it into a the new DB?

My hope was to download the doctrine 1.2 module and have a script dump
our tables in YAML format that I could then use doctrine to import.
Is this the recommended way of doing this?

Cheers,
-Dave

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to