feat(documents) : add migration for type column with data classification

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Matthieu
2026-03-23 15:14:33 +01:00
parent 342b0afdbb
commit 8d920d5f65
8 changed files with 172 additions and 15 deletions

View File

@@ -290,10 +290,13 @@ abstract class AbstractApiTestCase extends ApiTestCase
return $machine;
}
protected function createComposant(string $name = 'Composant Test', ?ModelType $type = null): Composant
protected function createComposant(string $name = 'Composant Test', ?string $reference = null, ?ModelType $type = null): Composant
{
$c = new Composant();
$c->setName($name);
if (null !== $reference) {
$c->setReference($reference);
}
if (null !== $type) {
$c->setTypeComposant($type);
}