/** * @return \yii\db\ActiveQuery */ public function getEavAttributes() { return $this->hasMany(EavAttribute::className(), ['categoryId' => 'categoryId']); }
/** * @return \yii\db\ActiveQuery */ public function getAttribute($name = '') { return $this->hasOne(EavAttribute::className(), ['id' => 'attributeId']); }
/** * @return \yii\db\ActiveQuery */ public function getEavAttributes() { return $this->hasMany(EavAttribute::className(), ['entityId' => 'id']); }