Exemple #1
0
 /**
  * Делегирование не найденых методов 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;
 }
Exemple #2
0
 protected function setup()
 {
     $this->columns('id', 'entity_id', 'parent_id', 'level', 'ord')->classname('Tree.DB.MPT.JoinEntity')->key('id');
     return parent::setup();
 }
Exemple #3
0
 protected function after_setup()
 {
     $this->setup_config();
     return parent::after_setup();
 }
Exemple #4
0
 /**
  * @covers DB_ORM_SQLMapper::__call
  * @todo   Implement test__call().
  */
 public function test__call()
 {
     var_dump($this->object->any('any'));
     die;
 }