Skip to content

Commit 1912b49

Browse files
committed
doc: notes/tips for foundry:load-stories
1 parent 830d5a5 commit 1912b49

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

docs/index.rst

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1537,12 +1537,23 @@ Mark `Stories`_ you want loaded by the command with the ``#[AsFixture]`` attribu
15371537
// ...
15381538
}
15391539

1540-
``bin/console foundry:load-stories category`` will now load the story ``CategoryStory`` in your database.
1540+
``bin/console foundry:load-stories category`` will first reset your database, then load the story ``CategoryStory``
1541+
in your database.
1542+
1543+
.. note::
1544+
1545+
For the ORM, by default, the database schema is created with ``doctrine:schema:create``. See `Database Reset`_
1546+
for how to use migrations or further customize this behaviour.
15411547

15421548
.. note::
15431549

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

1552+
.. tip::
1553+
1554+
Use the ``--append`` option to add the story to the database without resetting it first:
1555+
``bin/console foundry:load-stories category --append``
1556+
15461557
You can also load stories by group, by using the ``groups`` option:
15471558

15481559
::

0 commit comments

Comments
 (0)