Skip to content

Commit b41b305

Browse files
committed
Fix this reader
1 parent 19feff6 commit b41b305

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Migration/Sources/Appwrite.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,16 +1123,16 @@ private function exportRecords(string $entityName, string $fieldName, int $batch
11231123
}
11241124
}
11251125

1126-
$response = $this->database->listRows($table, $queries);
1126+
$response = $this->reader->listRows($table, $queries);
11271127

11281128
foreach ($response as $row) {
11291129
// HACK: Handle many to many (only for schema-based databases)
11301130
if (!empty($manyToMany)) {
11311131
$queries = [];
1132-
$queries[] = $this->database->querySelect('$id'); // Adding $id because we can't select only relations
1132+
$queries[] = $this->reader->querySelect('$id'); // Adding $id because we can't select only relations
11331133

11341134
foreach ($manyToMany as $relation) {
1135-
$queries[] = $this->database->querySelect($relation . '.$id');
1135+
$queries[] = $this->reader->querySelect($relation . '.$id');
11361136
}
11371137

11381138
$rowItem = $this->reader->getRow(

0 commit comments

Comments
 (0)