| @@ 1195-1241 (lines=47) @@ | ||
| 1192 | $result[$key] = $virtualColumn; |
|
| 1193 | } |
|
| 1194 | ||
| 1195 | if ($includeForeignObjects) { |
|
| 1196 | if (null !== $this->aInstance) { |
|
| 1197 | ||
| 1198 | switch ($keyType) { |
|
| 1199 | case TableMap::TYPE_CAMELNAME: |
|
| 1200 | $key = 'instance'; |
|
| 1201 | break; |
|
| 1202 | case TableMap::TYPE_FIELDNAME: |
|
| 1203 | $key = 'instance'; |
|
| 1204 | break; |
|
| 1205 | default: |
|
| 1206 | $key = 'Instance'; |
|
| 1207 | } |
|
| 1208 | ||
| 1209 | $result[$key] = $this->aInstance->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); |
|
| 1210 | } |
|
| 1211 | if (null !== $this->aUser) { |
|
| 1212 | ||
| 1213 | switch ($keyType) { |
|
| 1214 | case TableMap::TYPE_CAMELNAME: |
|
| 1215 | $key = 'user'; |
|
| 1216 | break; |
|
| 1217 | case TableMap::TYPE_FIELDNAME: |
|
| 1218 | $key = 'user'; |
|
| 1219 | break; |
|
| 1220 | default: |
|
| 1221 | $key = 'User'; |
|
| 1222 | } |
|
| 1223 | ||
| 1224 | $result[$key] = $this->aUser->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); |
|
| 1225 | } |
|
| 1226 | if (null !== $this->aChannel) { |
|
| 1227 | ||
| 1228 | switch ($keyType) { |
|
| 1229 | case TableMap::TYPE_CAMELNAME: |
|
| 1230 | $key = 'channel'; |
|
| 1231 | break; |
|
| 1232 | case TableMap::TYPE_FIELDNAME: |
|
| 1233 | $key = 'channel'; |
|
| 1234 | break; |
|
| 1235 | default: |
|
| 1236 | $key = 'Channel'; |
|
| 1237 | } |
|
| 1238 | ||
| 1239 | $result[$key] = $this->aChannel->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); |
|
| 1240 | } |
|
| 1241 | } |
|
| 1242 | ||
| 1243 | return $result; |
|
| 1244 | } |
|
| @@ 893-939 (lines=47) @@ | ||
| 890 | $result[$key] = $virtualColumn; |
|
| 891 | } |
|
| 892 | ||
| 893 | if ($includeForeignObjects) { |
|
| 894 | if (null !== $this->aInstance) { |
|
| 895 | ||
| 896 | switch ($keyType) { |
|
| 897 | case TableMap::TYPE_CAMELNAME: |
|
| 898 | $key = 'instance'; |
|
| 899 | break; |
|
| 900 | case TableMap::TYPE_FIELDNAME: |
|
| 901 | $key = 'instance'; |
|
| 902 | break; |
|
| 903 | default: |
|
| 904 | $key = 'Instance'; |
|
| 905 | } |
|
| 906 | ||
| 907 | $result[$key] = $this->aInstance->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); |
|
| 908 | } |
|
| 909 | if (null !== $this->collConnections) { |
|
| 910 | ||
| 911 | switch ($keyType) { |
|
| 912 | case TableMap::TYPE_CAMELNAME: |
|
| 913 | $key = 'connections'; |
|
| 914 | break; |
|
| 915 | case TableMap::TYPE_FIELDNAME: |
|
| 916 | $key = 'connections'; |
|
| 917 | break; |
|
| 918 | default: |
|
| 919 | $key = 'Connections'; |
|
| 920 | } |
|
| 921 | ||
| 922 | $result[$key] = $this->collConnections->toArray(null, false, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); |
|
| 923 | } |
|
| 924 | if (null !== $this->collSubscriptions) { |
|
| 925 | ||
| 926 | switch ($keyType) { |
|
| 927 | case TableMap::TYPE_CAMELNAME: |
|
| 928 | $key = 'subscriptions'; |
|
| 929 | break; |
|
| 930 | case TableMap::TYPE_FIELDNAME: |
|
| 931 | $key = 'subscriptions'; |
|
| 932 | break; |
|
| 933 | default: |
|
| 934 | $key = 'Subscriptions'; |
|
| 935 | } |
|
| 936 | ||
| 937 | $result[$key] = $this->collSubscriptions->toArray(null, false, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); |
|
| 938 | } |
|
| 939 | } |
|
| 940 | ||
| 941 | return $result; |
|
| 942 | } |
|