|
@@ 51-59 (lines=9) @@
|
| 48 |
|
$this->ids['objectIds'][$type] = \Migrations\Id::getList(['where' => ['type', $type], 'key' => 'object_id']); |
| 49 |
|
} |
| 50 |
|
|
| 51 |
|
public function findObject($parseId, $type) { |
| 52 |
|
if (empty($this->ids['parseIds'][$type])) { |
| 53 |
|
$this->loadParseIds($type); |
| 54 |
|
ksort($this->ids['parseIds'][$type]); |
| 55 |
|
} |
| 56 |
|
if (!empty($this->ids['parseIds'][$type][$parseId])) { |
| 57 |
|
return $this->ids['parseIds'][$type][$parseId]; |
| 58 |
|
} |
| 59 |
|
} |
| 60 |
|
|
| 61 |
|
public function findParse($objectId, $type) { |
| 62 |
|
if (empty($this->ids['objectIds'][$type])) { |
|
@@ 61-69 (lines=9) @@
|
| 58 |
|
} |
| 59 |
|
} |
| 60 |
|
|
| 61 |
|
public function findParse($objectId, $type) { |
| 62 |
|
if (empty($this->ids['objectIds'][$type])) { |
| 63 |
|
$this->loadObjectIds($type); |
| 64 |
|
ksort($this->ids['objectIds'][$type]); |
| 65 |
|
} |
| 66 |
|
if (!empty($this->ids['objectIds'][$type][$objectId])) { |
| 67 |
|
return $this->ids['objectIds'][$type][$objectId]; |
| 68 |
|
} |
| 69 |
|
} |
| 70 |
|
|
| 71 |
|
public function getMigrationObject($objectId) { |
| 72 |
|
if (empty($this->migrationObjects)) { |