Exemplo n.º 1
0
 /**
  * @param \Extcode\Cart\Domain\Model\Cart\BeVariant $variant
  *
  * @return string
  */
 protected function getVariantFieldName($variant)
 {
     $fieldName = '';
     if ($variant->getParentBeVariant()) {
         $fieldName .= $this->getVariantFieldName($variant->getParentBeVariant());
     }
     if ($variant->getProduct()) {
         $fieldName .= '[' . $variant->getProduct()->getId() . ']';
     }
     $fieldName .= '[' . $variant->getId() . ']';
     return $fieldName;
 }