Skip to content
Snippets Groups Projects
Commit 30f4ccd2 authored by Javier Eguiluz's avatar Javier Eguiluz
Browse files

minor #727 Revamped the data fixtures (javiereguiluz)

This PR was squashed before being merged into the master branch (closes #727).

Discussion
----------

Revamped the data fixtures

After #724 and #725 I realized that our fixtures are not following the modern best practices recommended by DoctrineFixturesBundle ([explained here](https://symfony.com/doc/master/bundles/DoctrineFixturesBundle/index.html)):

* Use 1 class to load all fixtures unless you have lots of fixtures.
* Make the fixture class extend from Symfony's `Fixture` class instead of the complicated Doctrine's classes.
* Inject services in the constructor and rely on autowiring.
* etc.

Commits
-------

adb76fc2 Revamped the data fixtures
parents 3bdaac0f adb76fc2
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment