Skip to content

Commit

Permalink
FIX: Return wrong type in MSSQL
Browse files Browse the repository at this point in the history
  • Loading branch information
lam0819 authored Jan 23, 2025
1 parent a1a95f3 commit 325fc5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Concern/HasRecords.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function getRootLayerRecords(): \Illuminate\Support\Collection
return $record->isRoot();
}
if (method_exists($record, 'determineParentColumnName')) {
return $record->getAttributeValue($record->determineParentColumnName()) === Utils::defaultParentId();
return $record->getAttributeValue($record->determineParentColumnName()) == Utils::defaultParentId();
}
return $record->getAttributeValue('parent') === Utils::defaultParentId();
});
Expand Down

0 comments on commit 325fc5f

Please sign in to comment.