コード例 #1
0
ファイル: Option.php プロジェクト: aleherse/Sylius
 /**
  * {@inheritdoc}
  */
 public function removeValue(OptionValueInterface $value)
 {
     if ($this->hasValue($value)) {
         $this->values->removeElement($value);
         $value->setOption(null);
     }
 }
コード例 #2
0
ファイル: Variant.php プロジェクト: bcremer/Sylius
 /**
  * {@inheritdoc}
  */
 public function removeOption(OptionValueInterface $option)
 {
     if ($this->hasOption($option)) {
         $this->options->removeElement($option);
     }
     return $this;
 }
コード例 #3
0
 /**
  * {@inheritdoc}
  */
 public function removeValue(OptionValueInterface $value)
 {
     $this->assertMultipleAllowed();
     if ($this->hasValue($value)) {
         $this->optionValues->removeElement($value);
     }
     return $this;
 }