Skip to content

Commit 9c63d02

Browse files
authored
Update src/Generators/ModelGenerator.php
1 parent 67ffb72 commit 9c63d02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Generators/ModelGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ protected function getImportedRelations(): array
175175
{
176176
$result = [];
177177

178-
foreach ($this->relations as $relationName => $relations) {
178+
foreach ($this->relations as $relationType => $relations) {
179179
foreach ($relations as $relation) {
180180
if ($this->shouldImportRelation($relation)) {
181181
$result[] = $this->generateClassNamespace($relation);

0 commit comments

Comments
 (0)