32], ]; } public function behaviors() { return [ [ 'class' => TimestampBehavior::class, 'attributes' => [ ActiveRecord::EVENT_BEFORE_INSERT => ['updated_at', 'created_at'], ActiveRecord::EVENT_BEFORE_UPDATE => 'updated_at' ] ] ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => '分类ID', 'store_id' => '商城id', 'name' => '分类名称', 'is_delete' => 'Is Delete', 'is_enable' => '状态', 'created_at' => '创建时间', 'updated_at' => '更新时间', 'sort' => '排序' ]; } public function afterSave($insert, $changedAttributes) { parent::afterSave($insert, $changedAttributes); // TODO: Change the autogenerated stub (new DiyCommon)->JobBehaviors($this->store_id, StoreSyncExtLog::TYPE_INTEGRAL_STORE); } }