| @@ 997-1003 (lines=7) @@ | ||
| 994 | return $result->getArray($key);  | 
                                |
| 995 | }  | 
                                |
| 996 | $list = $result->getObjects(get_called_class(), $key);  | 
                                |
| 997 |         if (!empty($options['forSelect'])) { | 
                                |
| 998 | $return = [];  | 
                                |
| 999 |             foreach ($list as $key => $item) { | 
                                |
| 1000 | $return[$key] = $item->name();  | 
                                |
| 1001 | }  | 
                                |
| 1002 | return $return;  | 
                                |
| 1003 | }  | 
                                |
| 1004 | return $list;  | 
                                |
| 1005 | }  | 
                                |
| 1006 | ||
| @@ 1133-1139 (lines=7) @@ | ||
| 1130 | return 0;  | 
                                |
| 1131 | });  | 
                                |
| 1132 | }  | 
                                |
| 1133 |             if (!empty($options['forSelect'])) { | 
                                |
| 1134 | $return = [];  | 
                                |
| 1135 |                 foreach ($items as $key => $item) { | 
                                |
| 1136 | $return[$key] = $item->name();  | 
                                |
| 1137 | }  | 
                                |
| 1138 | return $return;  | 
                                |
| 1139 | }  | 
                                |
| 1140 | return $items;  | 
                                |
| 1141 | }  | 
                                |
| 1142 | return [];  | 
                                |