getPiece(); } protected function snapshotEntity(object $entity): array { return [ 'id' => $entity->getId(), 'name' => $this->safeGet($entity, 'getName'), 'reference' => $this->safeGet($entity, 'getReference'), 'prix' => $this->safeGet($entity, 'getPrix'), 'typePiece' => $this->normalizeValue($this->safeGet($entity, 'getTypePiece')), 'product' => $this->normalizeValue($this->safeGet($entity, 'getProduct')), 'productIds' => $this->safeGet($entity, 'getProductIds') ?? [], 'constructeurIds' => $this->normalizeCollection($entity->getConstructeurs()), ]; } }