/** * @return \yii\db\ActiveQuery */ public function getAttributes3() { return $this->hasMany(EavAttribute::className(), ['attribute_id' => 'attribute_id'])->viaTable('{{%customer_address_entity_varchar}}', ['entity_id' => 'entity_id']); }
/** * @return \yii\db\ActiveQuery */ public function getEavAttributes() { return $this->hasMany(EavAttribute::className(), ['id' => 'attribute_id'])->viaTable('{{%eav_entity_attribute}}', ['entity_id' => 'id']); //->orderBy(['eav_entity_attribute.order' => SORT_DESC]); }