-
Remove DataLoaders. Instead of having a data loader to reference a file in a different folder, you can create a "dummy" file, which will only contain an include statement and refer to the other file.
-
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
src/AppBundle/DataFixtures{/ORM}
toResources/fixtures{/orm}
instead (fromapp
or one of your bundle). -
Faker provider are now registered with the tag
nelmio_alice.faker.provider
instead ofhautelook_alice.faker.provider
. -
Processors are now registered with the tag
fidry_alice_data_fixtures.processor
instead ofhautelook_alice.alice.processor
-
You data loader should now either extend
Hautelook\AliceBundle\Doctrine\DataFixtures\AbstractLoader
or implementHautelook\AliceBundle\Doctrine\DataFixtures\LoaderInterface
. -
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
@Bundlename
. -
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 hautelook_alice:doctrine:fixtures:load
(or h:d:f:l
) instead of doctrine:fixtures:load
.
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.