コード例 #1
0
ファイル: TestDaemon.php プロジェクト: tokushima/rhaco3
 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();
 }