public function getAttribute($name = '') { return $this->hasOne(EavAttribute::className(), ['id' => 'attributeId']); }