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
1537
1537
// ...
1538
1538
}
1539
1539
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.
1541
1547
1542
1548
.. note ::
1543
1549
1544
1550
If only a single story exists, you can omit the argument and just call ``bin/console foundry:load-stories `` to load it.
1545
1551
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
+
1546
1557
You can also load stories by group, by using the ``groups `` option:
1547
1558
1548
1559
::
You can’t perform that action at this time.
0 commit comments