public function getOptionChoice(ProductOption $option) { foreach ($this->optionChoices as $choice) { if ($choice->choice->get()->option->get()->getID() == $option->getID()) { return $choice; } } }
public function getOptionChoice(ProductOption $option) { foreach ($this->optionChoices as $choice) { if ($choice->choice->get()->option->get()->getID() == $option->getID()) { return $choice; } } }