mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-19 10:24:50 +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
|
@ -50,8 +50,6 @@ class PartFixtures extends Fixture
|
|||
|
||||
public function load(ObjectManager $manager): void
|
||||
{
|
||||
$table_name = $this->em->getClassMetadata(Part::class)->getTableName();
|
||||
$this->em->getConnection()->exec("ALTER TABLE `${table_name}` AUTO_INCREMENT = 1;");
|
||||
|
||||
/** Simple part */
|
||||
$part = new Part();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue