| @@ 1220-1236 (lines=17) @@ | ||
| 1217 | $result[$key] = $virtualColumn; |
|
| 1218 | } |
|
| 1219 | ||
| 1220 | if ($includeForeignObjects) { |
|
| 1221 | if (null !== $this->aPlayer) { |
|
| 1222 | ||
| 1223 | switch ($keyType) { |
|
| 1224 | case TableMap::TYPE_CAMELNAME: |
|
| 1225 | $key = 'player'; |
|
| 1226 | break; |
|
| 1227 | case TableMap::TYPE_FIELDNAME: |
|
| 1228 | $key = 'player'; |
|
| 1229 | break; |
|
| 1230 | default: |
|
| 1231 | $key = 'Player'; |
|
| 1232 | } |
|
| 1233 | ||
| 1234 | $result[$key] = $this->aPlayer->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true); |
|
| 1235 | } |
|
| 1236 | } |
|
| 1237 | ||
| 1238 | return $result; |
|
| 1239 | } |
|
| @@ 1101-1117 (lines=17) @@ | ||
| 1098 | $result[$key] = $virtualColumn; |
|
| 1099 | } |
|
| 1100 | ||
| 1101 | if ($includeForeignObjects) { |
|
| 1102 | if (null !== $this->collRecords) { |
|
| 1103 | ||
| 1104 | switch ($keyType) { |
|
| 1105 | case TableMap::TYPE_CAMELNAME: |
|
| 1106 | $key = 'records'; |
|
| 1107 | break; |
|
| 1108 | case TableMap::TYPE_FIELDNAME: |
|
| 1109 | $key = 'records'; |
|
| 1110 | break; |
|
| 1111 | default: |
|
| 1112 | $key = 'Records'; |
|
| 1113 | } |
|
| 1114 | ||
| 1115 | $result[$key] = $this->collRecords->toArray(null, false, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects); |
|
| 1116 | } |
|
| 1117 | } |
|
| 1118 | ||
| 1119 | return $result; |
|
| 1120 | } |
|