This project has been done for the sole purpose of beeing a working exemple for the Fixture Documentation Bundle.
It demonstrates the use of this bundle with the basic doctrine fixtures manager Doctrine Symfony.
To use this repository, you have to clone it next to the fixture documentation bundle.
The launch the following commands in order
make init
make load
make start
- make init will launch the composer install command and create the database in sqlite
- make load will populate the database with doctrine bundle
- make start will launch a web server on port 8000
Then go to your localhost to see the result by yourself
You can edit, add, delete files in src/entity to test some behaviors. Don't forget (or do to see what it does) to add theses entities in config/packages/fixtures_doc.yaml and to edit AppFixtures.php in src/DataFixtures folder.
If you change the structure of the models you'll have to run 'make init' command again
The use of the bundle add around 400% of time to load fixtures. For this project it takes approx. from 0.33s to 1.66s in average on 10 launch, for a case with 100 customers and 1000 products. In the future we'll have to improve these delays, but a fixture project don't have to be too big either