审查视图

application/admin/command/Crud/stubs/mixins/modelinit.stub 228 字节
景龙 authored
1 2 3 4 5 6 7 8

    protected static function init()
    {
        self::afterInsert(function ($row) {
            $pk = $row->getPk();
            $row->getQuery()->where($pk, $row[$pk])->update(['{%order%}' => $row[$pk]]);
        });
    }