Skip to content

Commit

Permalink
Add code example for purge exclusion (#389)
Browse files Browse the repository at this point in the history
Co-authored-by: Grégoire Paris <postmaster@greg0ire.fr>
  • Loading branch information
LucileDT and greg0ire committed May 15, 2023
1 parent 9ec3139 commit 121bbeb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Resources/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,11 @@ By default all previously existing data is purged using ``DELETE FROM table`` st

If you want to exclude a set of tables from being purged, e.g. because your schema comes with pre-populated,
semi-static data, pass the option ``--purge-exclusions``. Specify ``--purge-exclusions`` multiple times to exclude
multiple tables.
multiple tables:

.. code-block:: terminal
$ php bin/console doctrine:fixtures:load --purge-exclusions=post_category --purge-exclusions=comment_type
You can also customize purging behavior significantly more and implement a custom purger plus a custom purger factory::

Expand Down

0 comments on commit 121bbeb

Please sign in to comment.