mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-03 01:34:34 +02:00
Reset autoincrement in a custom purger not in DataFixtures.
This makes things a lot prettier in the DataFixtures.
This commit is contained in:
parent
bd4c20765a
commit
63065a8b58
8 changed files with 326 additions and 10 deletions
|
@ -42,6 +42,7 @@ services:
|
|||
Doctrine\Migrations\DependencyFactory:
|
||||
alias: 'doctrine.migrations.dependency_factory'
|
||||
|
||||
|
||||
####################################################################################################################
|
||||
# Email
|
||||
####################################################################################################################
|
||||
|
@ -210,3 +211,7 @@ services:
|
|||
arguments:
|
||||
$default_locale: '%partdb.locale%'
|
||||
$enforce_index_php: '%env(bool:NO_URL_REWRITE_AVAILABLE)%'
|
||||
|
||||
App\Doctrine\Purger\ResetAutoIncrementPurgerFactory:
|
||||
tags:
|
||||
- { name: 'doctrine.fixtures.purger_factory', alias: 'reset_autoincrement_purger' }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue