diff --git a/src/ActiveRecord.php b/src/ActiveRecord.php index 259f4ef..9acff7f 100644 --- a/src/ActiveRecord.php +++ b/src/ActiveRecord.php @@ -352,7 +352,7 @@ protected function updateInternal($attributes = null, $options = []) */ public static function perform($action, $options = [], $bulk = false) { - $action = ($bulk === true) ? static::index() . $action : static::modelName() . $action; + $action = ($bulk === true ? static::index() : static::type()) . $action; $result = static::getDb()->createCommand()->perform($action, $options); return $result;