コード例 #1
0
 public function save()
 {
     if ($this->_record) {
         return RExecutor::instance($this)->update();
     } else {
         return RExecutor::instance($this)->insert();
     }
 }
コード例 #2
0
 public function findOneBySql($statement, $parameters = array())
 {
     return RExecutor::instance($this->_record)->findBySql($statement, $parameters, false);
 }