| @@ 823-829 (lines=7) @@ | ||
| 820 | return $result->getArray($key); |
|
| 821 | } |
|
| 822 | $list = $result->getObjects(get_called_class(), $key); |
|
| 823 | if (!empty($options['forSelect'])) { |
|
| 824 | $return = []; |
|
| 825 | foreach ($list as $key => $item) { |
|
| 826 | $return[$key] = $item->name(); |
|
| 827 | } |
|
| 828 | return $return; |
|
| 829 | } |
|
| 830 | return $list; |
|
| 831 | } |
|
| 832 | ||
| @@ 953-959 (lines=7) @@ | ||
| 950 | return 0; |
|
| 951 | }); |
|
| 952 | } |
|
| 953 | if (!empty($options['forSelect'])) { |
|
| 954 | $return = []; |
|
| 955 | foreach ($items as $key => $item) { |
|
| 956 | $return[$key] = $item->name(); |
|
| 957 | } |
|
| 958 | return $return; |
|
| 959 | } |
|
| 960 | return $items; |
|
| 961 | } |
|
| 962 | return []; |
|