public function Options() { if ($this->custOptions) { return $this->custOptions; } $custom = $this->CustomOptions->getValues(); if (count($custom)) { $this->custOptions = ArrayData::create($custom); return $this->custOptions; } return parent::Options(); }