diff --git a/docs/en/how-to/fixture-ordering.rst b/docs/en/how-to/fixture-ordering.rst index 76454d4e..6430bcba 100644 --- a/docs/en/how-to/fixture-ordering.rst +++ b/docs/en/how-to/fixture-ordering.rst @@ -20,6 +20,7 @@ Option 1: Controlling the order manually ---------------------------------------- .. code-block:: php + loadFromFile('/path/to/MyDataFixtures/MyFixture1.php'); @@ -69,12 +72,14 @@ want to load a whole directory of fixtures instead of making one call per fixture. .. code-block:: php + loadFromDirectory('/path/to/MyDataFixtures'); You can get the added fixtures using the ``getFixtures()`` method: .. code-block:: php + getFixtures(); @@ -87,6 +92,7 @@ store you are using. For example, if you are using ORM, you should do the following: .. code-block:: php + execute($loader->getFixtures(), append: true); @@ -114,5 +121,6 @@ want to wrap the purge and the load of every fixture in its own transaction. To do so, you can use ``MultipleTransactionORMExecutor``. .. code-block:: php + ` is satisfied if you extend ``AbstractFixture``. .. code-block:: php +