mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-20 19:05:14 +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
|
@ -61,9 +61,6 @@ class UserFixtures extends Fixture
|
|||
|
||||
public function load(ObjectManager $manager): void
|
||||
{
|
||||
//Reset autoincrement
|
||||
$this->em->getConnection()->exec('ALTER TABLE `users` AUTO_INCREMENT = 1;');
|
||||
|
||||
$anonymous = new User();
|
||||
$anonymous->setName('anonymous');
|
||||
$anonymous->setGroup($this->getReference(GroupFixtures::READONLY));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue