File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff 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+
15461557You can also load stories by group, by using the ``groups `` option:
15471558
15481559::
You can’t perform that action at this time.
0 commit comments