feat(normalization) : drop structure and productIds JSON columns

- Remove Composant.structure property, getter/setter
- Remove Piece.productIds property, setProductIds()
- Update fixtures to remove dropped columns
- Add migrations to drop both columns

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Matthieu
2026-03-13 08:19:54 +01:00
parent 8ed5f90b63
commit a6139d7090
8 changed files with 179 additions and 173 deletions

View File

@@ -39,7 +39,6 @@ final class ComposantAuditSubscriber extends AbstractAuditSubscriber
'name' => $this->safeGet($entity, 'getName'),
'reference' => $this->safeGet($entity, 'getReference'),
'prix' => $this->safeGet($entity, 'getPrix'),
'structure' => $this->safeGet($entity, 'getStructure'),
'typeComposant' => $this->normalizeValue($this->safeGet($entity, 'getTypeComposant')),
'product' => $this->normalizeValue($this->safeGet($entity, 'getProduct')),
'constructeurIds' => $this->normalizeCollection($entity->getConstructeurs()),

View File

@@ -12,7 +12,7 @@ use Doctrine\ORM\Event\PreUpdateEventArgs;
use Doctrine\ORM\Events;
/**
* Keep the legacy single product relation in sync with the new productIds array.
* Keep the legacy single product relation in sync with the ManyToMany products collection.
*/
final class PieceProductSyncSubscriber implements EventSubscriber
{