| @@ 1021-1027 (lines=7) @@ | ||
| 1018 | return $result->getArray($key); |
|
| 1019 | } |
|
| 1020 | $list = $result->getObjects(get_called_class(), $key); |
|
| 1021 | if (!empty($options['forSelect'])) { |
|
| 1022 | $return = []; |
|
| 1023 | foreach ($list as $key => $item) { |
|
| 1024 | $return[$key] = $item->name(); |
|
| 1025 | } |
|
| 1026 | return $return; |
|
| 1027 | } |
|
| 1028 | return $list; |
|
| 1029 | } |
|
| 1030 | ||
| @@ 1157-1163 (lines=7) @@ | ||
| 1154 | return 0; |
|
| 1155 | }); |
|
| 1156 | } |
|
| 1157 | if (!empty($options['forSelect'])) { |
|
| 1158 | $return = []; |
|
| 1159 | foreach ($items as $key => $item) { |
|
| 1160 | $return[$key] = $item->name(); |
|
| 1161 | } |
|
| 1162 | return $return; |
|
| 1163 | } |
|
| 1164 | return $items; |
|
| 1165 | } |
|
| 1166 | return []; |
|