Skip to content

Latest commit

 

History

History
28 lines (15 loc) · 1.56 KB

UPGRADE.md

File metadata and controls

28 lines (15 loc) · 1.56 KB

Upgrading guide

From 0.2 to 1.x

Upgrading the data loaders

  1. You data loader should now either extend Hautelook\AliceBundle\Doctrine\DataFixtures\AbstractLoader or implement Hautelook\AliceBundle\Doctrine\DataFixtures\LoaderInterface.

  2. If you were overriding the ::load() function of the data loader, you should not need it anymore now:

  1. 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.

  2. 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.

Doctrine command

You should now rely on the bundle command hautelook_alice:doctrine:fixtures:load (or h:d:f:l) instead of doctrine:fixtures:load.

Remove DoctrineFixturesBundle

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.

Back to the documentation