public function getTextValue() { $EavModel = $this->attributeHandler->owner; /** @var ActiveRecord $valueClass */ $valueClass = $EavModel->valueClass; $models = $valueClass::findAll(['entityId' => $EavModel->entityModel->getPrimaryKey(), 'attributeId' => $this->attributeHandler->attributeModel->getPrimaryKey()]); $values = []; foreach ($models as $model) { $values[] = $model->option->value; } return implode(', ', $values); }