Skip to content

Commit 8c26025

Browse files
committed
resolve namespaces
1 parent d7806bd commit 8c26025

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Console/ModelsCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ public function getPropertiesFromMethods($model)
726726

727727
$this->setProperty(
728728
$relationObj->getPivotAccessor(),
729-
$this->getClassNameInDestinationFile($model, $pivot),
729+
$pivot,
730730
true,
731731
false
732732
);

tests/Console/ModelsCommand/Pivot/__snapshots__/Test__test__1.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
/**
1212
*
1313
*
14-
* @property-read \DifferentCustomPivot|\CustomPivot|null $pivot
14+
* @property-read DifferentCustomPivot|CustomPivot|null $pivot
1515
* @property-read \Illuminate\Database\Eloquent\Collection<int, ModelWithPivot> $relationCustomPivotUsingSameAccessor
1616
* @property-read int|null $relation_custom_pivot_using_same_accessor_count
17-
* @property-read \CustomPivot|null $customAccessor
17+
* @property-read CustomPivot|null $customAccessor
1818
* @property-read \Illuminate\Database\Eloquent\Collection<int, ModelWithPivot> $relationWithCustomPivot
1919
* @property-read int|null $relation_with_custom_pivot_count
20-
* @property-read \DifferentCustomPivot|null $differentCustomAccessor
20+
* @property-read DifferentCustomPivot|null $differentCustomAccessor
2121
* @property-read \Illuminate\Database\Eloquent\Collection<int, ModelWithPivot> $relationWithDifferentCustomPivot
2222
* @property-read int|null $relation_with_different_custom_pivot_count
2323
* @property-read \Illuminate\Database\Eloquent\Collection<int, ModelWithPivot> $relationWithDifferentCustomPivotUsingSameAccessor

0 commit comments

Comments
 (0)