| @@ 264-280 (lines=17) @@ | ||
| 261 | * |
|
| 262 | * @return mixed The primary key of the row |
|
| 263 | */ |
|
| 264 | public static function getPrimaryKeyFromRow($row, $offset = 0, $indexType = TableMap::TYPE_NUM) |
|
| 265 | { |
|
| 266 | $pks = []; |
|
| 267 | ||
| 268 | $pks[] = (int) $row[ |
|
| 269 | $indexType == TableMap::TYPE_NUM |
|
| 270 | ? 0 + $offset |
|
| 271 | : self::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType) |
|
| 272 | ]; |
|
| 273 | $pks[] = (string) $row[ |
|
| 274 | $indexType == TableMap::TYPE_NUM |
|
| 275 | ? 1 + $offset |
|
| 276 | : self::translateFieldName('Locale', TableMap::TYPE_PHPNAME, $indexType) |
|
| 277 | ]; |
|
| 278 | ||
| 279 | return $pks; |
|
| 280 | } |
|
| 281 | ||
| 282 | /** |
|
| 283 | * The class that the tableMap will make instances of. |
|
| @@ 246-262 (lines=17) @@ | ||
| 243 | * |
|
| 244 | * @return mixed The primary key of the row |
|
| 245 | */ |
|
| 246 | public static function getPrimaryKeyFromRow($row, $offset = 0, $indexType = TableMap::TYPE_NUM) |
|
| 247 | { |
|
| 248 | $pks = []; |
|
| 249 | ||
| 250 | $pks[] = (int) $row[ |
|
| 251 | $indexType == TableMap::TYPE_NUM |
|
| 252 | ? 0 + $offset |
|
| 253 | : self::translateFieldName('Id', TableMap::TYPE_PHPNAME, $indexType) |
|
| 254 | ]; |
|
| 255 | $pks[] = (string) $row[ |
|
| 256 | $indexType == TableMap::TYPE_NUM |
|
| 257 | ? 1 + $offset |
|
| 258 | : self::translateFieldName('Locale', TableMap::TYPE_PHPNAME, $indexType) |
|
| 259 | ]; |
|
| 260 | ||
| 261 | return $pks; |
|
| 262 | } |
|
| 263 | ||
| 264 | /** |
|
| 265 | * The class that the tableMap will make instances of. |
|