TimestampBehavior::class, 'attributes' => [ ActiveRecord::EVENT_BEFORE_INSERT => ['created_at'], ActiveRecord::EVENT_BEFORE_UPDATE => ['updated_at'] ] ] ]; } /** * @inheritdoc */ public function rules() { return [ [['store_id', 'mch_id', 'user_id', 'is_manager', 'is_delete', 'is_disable', 'created_at', 'updated_at'], 'integer'], [['name', 'mobile'], 'string'], ]; } }