/** * Save an array into this class * @param $array * @return null */ function to_object($array = array()) { //Save event core data parent::to_object($array); //Save location info $this->location = new EM_Location($array['location_id']); //Save contact person info }