getProduct(); } protected function snapshotEntity(object $entity): array { return [ 'id' => $entity->getId(), 'name' => $this->safeGet($entity, 'getName'), 'reference' => $this->safeGet($entity, 'getReference'), 'supplierPrice' => $this->safeGet($entity, 'getSupplierPrice'), 'typeProduct' => $this->normalizeValue($this->safeGet($entity, 'getTypeProduct')), 'constructeurIds' => $this->normalizeCollection($entity->getConstructeurs()), ]; } }