/** * Set/Get attribute wrapper * * @param string $method Method * @param array $args Args * * @return \Zend\Db\TableGateway\TableGateway */ public function __call($method, $args) { if (empty(self::$tables[$this->name])) { $this->__construct(); } if (method_exists(self::$tables[$this->name], $method)) { return call_user_func_array(array(self::$tables[$this->name], $method), $args); } return parent::__call($method, $args); }