| @@ 774-780 (lines=7) @@ | ||
| 771 | return $result->getArray($key); |
|
| 772 | } |
|
| 773 | $list = $result->getObjects(get_called_class(), $key); |
|
| 774 | if (!empty($options['forSelect'])) { |
|
| 775 | $return = []; |
|
| 776 | foreach ($list as $key => $item) { |
|
| 777 | $return[$key] = $item->name(); |
|
| 778 | } |
|
| 779 | return $return; |
|
| 780 | } |
|
| 781 | return $list; |
|
| 782 | } |
|
| 783 | ||
| @@ 901-907 (lines=7) @@ | ||
| 898 | return 0; |
|
| 899 | }); |
|
| 900 | } |
|
| 901 | if (!empty($options['forSelect'])) { |
|
| 902 | $return = []; |
|
| 903 | foreach ($items as $key => $item) { |
|
| 904 | $return[$key] = $item->name(); |
|
| 905 | } |
|
| 906 | return $return; |
|
| 907 | } |
|
| 908 | return $items; |
|
| 909 | } |
|
| 910 | return []; |
|