Fixed minor inspection issue

This commit is contained in:
Jan Böhmer 2024-06-10 21:16:46 +02:00
parent 971bb92a8c
commit fe732ecf45
2 changed files with 2 additions and 4 deletions

View file

@ -207,6 +207,8 @@ class ResetAutoIncrementORMPurger implements PurgerInterface, ORMPurgerInterface
return 'ALTER TABLE '.$tableIdentifier->getQuotedName($platform).' AUTO_INCREMENT = 1;';
}
throw new \RuntimeException("Resetting autoincrement is not supported on this platform!");
//This seems to cause problems somehow
/*if ($platform instanceof SqlitePlatform) {
return 'DELETE FROM `sqlite_sequence` WHERE name = \''.$tableIdentifier->getQuotedName($platform).'\';';

View file

@ -57,10 +57,6 @@ class NoneOfItsChildrenValidatorTest extends ConstraintValidatorTestCase
$this->child1_2->setName('child1_2')->setParent($this->child1);
}
private function getDummyObjects(): array
{
$obj1 = new AttachmentType();
}
protected function createValidator(): NoneOfItsChildrenValidator
{