public function getLocation() { return CompetitionLocation::model()->with('province', 'city')->findByAttributes(array('competition_id' => $this->competition_id, 'location_id' => $this->location_id)); }