| @@ 44-53 (lines=10) @@ | ||
| 41 | $log->save(); |
|
| 42 | } |
|
| 43 | ||
| 44 | function findObject($parseId, $type) |
|
| 45 | { |
|
| 46 | if (empty($this->ids['parseIds'][$type])) { |
|
| 47 | $this->ids['parseIds'][$type] = \Migrations\Id::getList(['where' => ['type', $type], 'key' => 'parse_id']); |
|
| 48 | ksort($this->ids['parseIds'][$type]); |
|
| 49 | } |
|
| 50 | if (!empty($this->ids['parseIds'][$type][$parseId])) { |
|
| 51 | return $this->ids['parseIds'][$type][$parseId]; |
|
| 52 | } |
|
| 53 | } |
|
| 54 | ||
| 55 | function findParse($objectId, $type) |
|
| 56 | { |
|
| @@ 55-64 (lines=10) @@ | ||
| 52 | } |
|
| 53 | } |
|
| 54 | ||
| 55 | function findParse($objectId, $type) |
|
| 56 | { |
|
| 57 | if (empty($this->ids['objectIds'][$type])) { |
|
| 58 | $this->ids['objectIds'][$type] = \Migrations\Id::getList(['where' => ['type', $type], 'key' => 'object_id']); |
|
| 59 | ksort($this->ids['objectIds'][$type]); |
|
| 60 | } |
|
| 61 | if (!empty($this->ids['objectIds'][$type][$objectId])) { |
|
| 62 | return $this->ids['objectIds'][$type][$objectId]; |
|
| 63 | } |
|
| 64 | } |
|
| 65 | ||
| 66 | function getMigrationObject($objectId) |
|
| 67 | { |
|