/** * Intercept parameter getter and setter calls * * @param string $method The function name * @param array $arguments The function arguments * @throws BadMethodCallException If method could not be found * @return mixed The result of the function */ public function __call($method, $arguments) { if ($this->_column !== 'parameters') { //Call getParameters() if ($method == 'get' . ucfirst($this->_column)) { return $this->getParameters(); } //Call setPropertyParameters() if ($method == 'setProperty' . ucfirst($this->_column)) { return $this->setPropertyParameters($arguments[0]); } } return parent::__call($method, $arguments); }