public function __call($method, $arguments) { $default = $this->actionToExecuteOnSaveInto; if ($default instanceof FormAction) { $default = $default->actionName(); } if ($method != $default && !$this->inlineForm->Actions()->fieldByName('action_' . $method)) { return parent::__call($method, $arguments); } $arguments[0] = $this->value; $this->unprependName($this->inlineForm->Fields()); $arguments[1] = $this->inlineForm; if ($this->inlineForm->Controller->hasMethod($method)) { return call_user_func_array([$this->inlineForm->Controller, $method], $arguments); } if ($this->form->Controller->hasMethod($method)) { return call_user_func_array([$this->form->Controller, $method], $arguments); } return parent::__call($method, $arguments); }