Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1537,12 +1537,23 @@ Mark `Stories`_ you want loaded by the command with the ``#[AsFixture]`` attribu
// ...
}

``bin/console foundry:load-stories category`` will now load the story ``CategoryStory`` in your database.
``bin/console foundry:load-stories category`` will first reset your database, then load the story ``CategoryStory``
in your database.

.. note::

For the ORM, by default, the database schema is created with ``doctrine:schema:create``. See `Database Reset`_
for how to use migrations or further customize this behavior.

.. note::

If only a single story exists, you can omit the argument and just call ``bin/console foundry:load-stories`` to load it.

.. tip::

Use the ``--append`` option to add the story to the database without resetting it first:
``bin/console foundry:load-stories category --append``

You can also load stories by group, by using the ``groups`` option:

::
Expand Down
Loading