/** * @param \ride\application\orm\entry\ImageTransformationOptionEntry $entry * @return null */ public function removeFromOptions(AliasImageTransformationOptionEntry $entry) { $this->getOptions(); $status = false; foreach ($this->options as $optionsIndex => $optionsValue) { if ($optionsValue === $entry || $optionsValue->getId() === $entry->getId()) { unset($this->options[$optionsIndex]); $status = true; break; } } if ($status && $this->entryState === self::STATE_CLEAN) { $this->entryState = self::STATE_DIRTY; } return $status; }