Exemplo n.º 1
0
 /**
  * @automap
  */
 public function insert()
 {
     $req = new \org\rhaco\Request();
     $model = new \test\model\TestModel();
     $model->id(100);
     $model->string('abcdefg');
     $model->integer($req->in_vars('integer'));
     $model->save();
 }
Exemplo n.º 2
0
 public static function main()
 {
     \org\rhaco\Log::info('main');
     $obj = new \test\model\TestModelLog();
     $obj->run();
     foreach (\test\model\TestModel::find(new \org\rhaco\Paginator(1), \org\rhaco\store\db\Q::order('-id')) as $o) {
         \org\rhaco\Log::info($o->id());
         $o->number(100);
         $o->save();
     }
     $dao = new \test\model\TestModel();
     $dao->number(1);
     $dao->save();
 }