public function removeVariant(VariantInterface $variant)
    {
        if ($this->hasVariant($variant)) {
            $variant->setObject(null);
            $this->variants->removeElement($variant);
        }

        return $this;
    }
public function removeVariant(VariantInterface $variant)
    {
        if ($this->hasVariant($variant)) {
            $variant->setObject(null);
            $this->variants->removeElement($variant);
        }

        return $this;
    }
public function removeVariant ( VariantInterface $ variant ) { if ( $ this -> hasVariant ( $ variant ) ) { $ variant -> setObject ( null ) ; $ this -> variants -> removeElement ( $ variant ) ; } return $ this ; }
Removes a variant

@param VariantInterface $variant

@return $this
Removes a variant