Skip to content

Commit 712568d

Browse files
authored
Fix exporting of entries (#516)
1 parent 3b1ee25 commit 712568d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Commands/ExportEntries.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class ExportEntries extends Command
4242
public function handle()
4343
{
4444
$this->usingDefaultRepositories(function () {
45-
$this->importEntries();
45+
$this->exportEntries();
4646
});
4747

4848
return 0;
@@ -61,9 +61,9 @@ private function usingDefaultRepositories(Closure $callback)
6161
$callback();
6262
}
6363

64-
private function importEntries()
64+
private function exportEntries()
6565
{
66-
$entries = app('statamic.eloquent.entries.entry')::all();
66+
$entries = app('statamic.eloquent.entries.model')::all();
6767

6868
$entriesWithOrigin = $entries->filter(function ($model) {
6969
return (bool) $model->origin_id;
@@ -74,7 +74,7 @@ private function importEntries()
7474
});
7575

7676
if ($entriesWithOrigin->count() > 0) {
77-
$this->info('Importing origin entries');
77+
$this->info('Exporting origin entries');
7878
}
7979

8080
$this->withProgressBar($entriesWithoutOrigin, function ($model) {
@@ -104,7 +104,7 @@ private function importEntries()
104104

105105
if ($entriesWithOrigin->count() > 0) {
106106
$this->newLine();
107-
$this->info('Importing localized entries');
107+
$this->info('Exporting localized entries');
108108

109109
$this->withProgressBar($entriesWithOrigin, function ($model) {
110110
$entry = Entry::make()

0 commit comments

Comments
 (0)