update
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
|
||||
protected static function init()
|
||||
{
|
||||
self::afterInsert(function ($row) {
|
||||
$pk = $row->getPk();
|
||||
$row->getQuery()->where($pk, $row[$pk])->update(['{%order%}' => $row[$pk]]);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user