form = $form; parent::__construct(); } /** * Ensure that all potential method calls get passed to __call(), therefore to dataFieldByName * @param string $method * @return bool */ public function hasMethod($method) { return true; } public function __call($method, $args = null) { return $this->form->Fields()->fieldByName($method); } }