| @@ 867-873 (lines=7) @@ | ||
| 864 | return $result->getArray($key); |
|
| 865 | } |
|
| 866 | $list = $result->getObjects(get_called_class(), $key); |
|
| 867 | if (!empty($options['forSelect'])) { |
|
| 868 | $return = []; |
|
| 869 | foreach ($list as $key => $item) { |
|
| 870 | $return[$key] = $item->name(); |
|
| 871 | } |
|
| 872 | return $return; |
|
| 873 | } |
|
| 874 | return $list; |
|
| 875 | } |
|
| 876 | ||
| @@ 999-1005 (lines=7) @@ | ||
| 996 | return 0; |
|
| 997 | }); |
|
| 998 | } |
|
| 999 | if (!empty($options['forSelect'])) { |
|
| 1000 | $return = []; |
|
| 1001 | foreach ($items as $key => $item) { |
|
| 1002 | $return[$key] = $item->name(); |
|
| 1003 | } |
|
| 1004 | return $return; |
|
| 1005 | } |
|
| 1006 | return $items; |
|
| 1007 | } |
|
| 1008 | return []; |
|