Skip to content

Commit

Permalink
fallback to parent (laravel#54096)
Browse files Browse the repository at this point in the history
  • Loading branch information
hafezdivandari authored Jan 6, 2025
1 parent 56fa89d commit 6755311
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function initializeHasUniqueStringIds()
*/
public function uniqueIds()
{
return [$this->getKeyName()];
return $this->usesUniqueIds() ? [$this->getKeyName()] : parent::uniqueIds();
}

/**
Expand Down Expand Up @@ -75,7 +75,7 @@ public function getKeyType()
return 'string';
}

return $this->keyType;
return parent::getKeyType();
}

/**
Expand All @@ -89,7 +89,7 @@ public function getIncrementing()
return false;
}

return $this->incrementing;
return parent::getIncrementing();
}

/**
Expand Down

0 comments on commit 6755311

Please sign in to comment.