Reset autoincrement in a custom purger not in DataFixtures.

This makes things a lot prettier in the DataFixtures.
This commit is contained in:
Jan Böhmer 2021-10-02 20:14:48 +02:00
parent bd4c20765a
commit 63065a8b58
8 changed files with 326 additions and 10 deletions

View file

@ -40,7 +40,6 @@ class LabelProfileFixtures extends Fixture
public function load(ObjectManager $manager): void
{
$this->em->getConnection()->exec('ALTER TABLE `label_profiles` AUTO_INCREMENT = 1;');
$profile1 = new LabelProfile();
$profile1->setName('Profile 1');