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