modelinit.stub 228 B

12345678
  1. protected static function init()
  2. {
  3. self::afterInsert(function ($row) {
  4. $pk = $row->getPk();
  5. $row->getQuery()->where($pk, $row[$pk])->update(['{%order%}' => $row[$pk]]);
  6. });
  7. }