Skip to content

Commit 5c30225

Browse files
committed
generate command fix
1 parent 3169956 commit 5c30225

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Commands/GenerateMappableColumnsCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ public function handle(): void
3434
continue;
3535
}
3636

37-
if (!$reflection->hasProperty('columns')) {
37+
if (!$reflection->hasProperty('mapAttributeToColumn')) {
3838
continue;
3939
}
4040

4141
echo 'Generating for ' . $model . "\n";
4242

43-
$mappedColumns = $reflection->newInstance()->columns;
43+
$mappedColumns = $reflection->newInstance()->mapAttributeToColumn;
4444
$docBlock = new DocBlock($reflection);
4545

4646
$existingProperties = [];

0 commit comments

Comments
 (0)