Symfony2, How to load fixtures with --fixtures option?

后端 未结 3 1637
后悔当初
后悔当初 2021-02-07 02:14

I need an example for command below in Symfony2 :

php app/console doctrine:mongodb:fixtures:load --fixtures=/path/to/fixture 

I don\'t know how

3条回答
  •  伪装坚强ぢ
    2021-02-07 03:01

    You can define a fixture with the real path.

    php app/console doctrine:fixtures:load --fixtures=src/MyBundle/DataFixtures/ORM/LoadMyFixturesData.php
    

提交回复
热议问题