/** * Get list of category's properties * @return array */ public function getPropertiesDropDown() { $groups = $this->groupProperties; $groupsIds = ArrayHelper::getColumn($groups, 'id'); $properties = Property::find()->with('productProperties')->where(['group_property_id' => $groupsIds])->all(); return ArrayHelper::map($properties, 'id', 'name'); }