public function actionClearAll()
    {
        if ($this->confirm('Are you sure?')) {
            $count = PushRecord::getDb()->transaction(function () {
                WorkerRecord::deleteAll();
                ExecRecord::deleteAll();
                return PushRecord::deleteAll();
            });
            $this->stdout("$count records deleted.\n");
        }
    }
public function actionClearAll()
    {
        if ($this->confirm('Are you sure?')) {
            $count = PushRecord::getDb()->transaction(function () {
                WorkerRecord::deleteAll();
                ExecRecord::deleteAll();
                return PushRecord::deleteAll();
            });
            $this->stdout("$count records deleted.\n");
        }
    }
public function actionClearAll ( ) { if ( $ this -> confirm ( 'Are you sure?' ) ) { $ count = PushRecord :: getDb ( ) -> transaction ( function ( ) { WorkerRecord :: deleteAll ( ) ; ExecRecord :: deleteAll ( ) ; return PushRecord :: deleteAll ( ) ; } ) ; $ this -> stdout ( "$count records deleted.\n" ) ; } }
Clear all records.
Clear all records .