/** * Делегирование не найденых методов union маппера. * В основном используется для map_ методов union мапперов */ public function __call($method, $args) { try { return parent::__call($method, $args); } catch (Core_MissingMethodException $e) { } foreach ($this->options['union'] as $key => $mapper) { $mapper = call_user_func_array(array($mapper, $method), $args); $this->union($mapper, $key); } return $this; }
protected function setup() { $this->columns('id', 'entity_id', 'parent_id', 'level', 'ord')->classname('Tree.DB.MPT.JoinEntity')->key('id'); return parent::setup(); }
protected function after_setup() { $this->setup_config(); return parent::after_setup(); }
/** * @covers DB_ORM_SQLMapper::__call * @todo Implement test__call(). */ public function test__call() { var_dump($this->object->any('any')); die; }