/** * @param bool $withRelations * * @return Market_TaxZoneModel[] */ public function getAll($withRelations = true) { $with = $withRelations ? ['countries', 'states', 'states.country'] : []; $records = Market_TaxZoneRecord::model()->with($with)->findAll(['order' => 't.name']); return Market_TaxZoneModel::populateModels($records); }