From 1.x to 2.x
The persistence layer has been moved to FidryAliceDataFixtures. As a result, refer to this library documentation for configuration related to the database.
Alice now ships with a Symfony bundle so some elements of the configuration have been moved from HautelookAliceBundle to NelmioAliceBundle.
The default and recommended location of fixtures have been changed from
appor one of your bundle).
Faker provider are now registered with the tag
Processors are now registered with the tag
From 0.2 to 1.x
Upgrading the data loaders
You data loader should now either extend
If you were overriding the
::load()function of the data loader, you should not need it anymore now:
- Custom Faker providers can now be registered, cf Custom Faker Providers.
- Custom Alice processors can now be registered, cf Custom Processors.
If you had very long path for some fixtures because you needed to refer to the fixtures of another bundle, you can now use the bundle annotation
If you had several data loaders to manage different set of fixtures depending of your environment, now you can devide your fixtures by environment instead of having to use and specify a data loader for that.
You should now rely on the bundle command
h:d:f:l) instead of
As explained here, there is no obligation to do so. HautelookAliceBundle is fully compatible with it. However it does not make sense to use the both of them together. It is recommended to choose only one.