@ -1272,7 +1272,7 @@ class ActiveRecord extends Model
$getter = 'get' . $name;
$getter = 'get' . $name;
try {
try {
$relation = $this->$getter();
$relation = $this->$getter();
if ($relation instanceof ActiveRelation) {
if ($relation instanceof ActiveRelation || $relation instanceof \yii\redis\ActiveRelation) { // TODO this should be done differently remove dep on redis