public static function listPhoneNumbers($personId) { $ret = array(); $orm = new self(); $orm->personId = (int) $personId; foreach ($orm->getIteratorByPersonId() as $row) { $ret[$row->type] = $row; } return $ret; }