| @@ 787-793 (lines=7) @@ | ||
| 784 | return $result->getArray($key); |
|
| 785 | } |
|
| 786 | $list = $result->getObjects(get_called_class(), $key); |
|
| 787 | if (!empty($options['forSelect'])) { |
|
| 788 | $return = []; |
|
| 789 | foreach ($list as $key => $item) { |
|
| 790 | $return[$key] = $item->name(); |
|
| 791 | } |
|
| 792 | return $return; |
|
| 793 | } |
|
| 794 | return $list; |
|
| 795 | } |
|
| 796 | ||
| @@ 914-920 (lines=7) @@ | ||
| 911 | return 0; |
|
| 912 | }); |
|
| 913 | } |
|
| 914 | if (!empty($options['forSelect'])) { |
|
| 915 | $return = []; |
|
| 916 | foreach ($items as $key => $item) { |
|
| 917 | $return[$key] = $item->name(); |
|
| 918 | } |
|
| 919 | return $return; |
|
| 920 | } |
|
| 921 | return $items; |
|
| 922 | } |
|
| 923 | return []; |
|