elcodi / bamboo

Meet Bamboo, an e-commerce project built on top of Elcodi and Symfony. Give us a star to support our project :)
http://bamboo.elcodi.com
MIT License
198 stars 44 forks source link

Loading doctrine fixtures manually throws mysql exceptions #656

Closed axelvnk closed 8 years ago

axelvnk commented 8 years ago

When executing php app/console doctrine:fixtures:load , the command breaks off on adding currency data. USD is already used as a primary key. For some reason it is added twice. I already forked so I'll try and figure it out.

EmanueleMinotto commented 8 years ago

Hi @axelvnk, first of all: thank you for your help! Can you also add the console output you see?

axelvnk commented 8 years ago
screen shot 2015-12-06 at 18 46 27
mmoreram commented 8 years ago

@axelvnk well, this is because fixtures are not being loaded properly.

Use only fixtures from the Fixtures and Plugins folder

php app/console doctrine:fixtures:load \
    --fixtures="src/Elcodi/Fixtures" \
    --fixtures="src/Elcodi/Plugin" --no-interaction