Esempio n. 1
0
 function fetch($decorate = true)
 {
     $this->_applyJoins($this->base_object, $this->join_relations);
     $rs = parent::fetch();
     if ($decorate) {
         $rs = new lmbARRecordSetDecorator($rs, $this->base_object, $this->_conn, $this->base_object->getLazyAttributes(), $this->use_proxy);
     }
     $rs = $this->_decorateWithJoinDecorator($rs);
     $rs = $this->_decorateWithAttachDecorator($rs);
     if ($this->sort_params) {
         $rs->sort($this->sort_params);
     }
     return $rs;
 }
 function testQueryWithoutWhereUsingDefaultConnection()
 {
     $sql = new lmbSelectRawQuery('SELECT 1=1');
     $rs = $sql->fetch();
     $this->assertEqual($rs->count(), 1);
 }