You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

modelinit.stub 228 B

4 years ago
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. }