Skip to content

Commit 09be53a

Browse files
committed
fix: minor fix for relation from json
1 parent 53659bb commit 09be53a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Commands/BaseCommand.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -430,11 +430,13 @@ protected function parseFieldsFromJsonFile()
430430
$jsonData = json_decode($fileContents, true);
431431
$this->config->fields = [];
432432
foreach ($jsonData as $field) {
433-
$this->config->fields[] = GeneratorField::parseFieldFromFile($field);
434-
435433
if (isset($field['relation'])) {
436434
$this->config->relations[] = GeneratorFieldRelation::parseRelation($field['relation']);
435+
continue;
437436
}
437+
438+
$this->config->fields[] = GeneratorField::parseFieldFromFile($field);
439+
438440
}
439441
}
440442

0 commit comments

Comments
 (0)