You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.
and also more or less expects the primary key name to be uuid (rather than id or whatever).
publicfunction getUuidTextAttribute(): string
publicfunction setUuidTextAttribute(string$uuid)
So HasUuidPrimaryKey trait doesn't influence whether the primary key will be treated as UUID, which is kind of bad, if you just want to use HasBinaryUuid trait for other attributes.
But even if the intention of HasUuidPrimaryKey is just an overkill way to change the primary key name from id to uuid, it makes no sense tha HasUuidPrimaryKey implements
publicfunctiongetIncrementing()
{
returnfalse;
}
while HasBinaryUuid doesn't.
The best behavior would be for HasBinaryUuid to leave the primary key alone, unless HasUuidPrimaryKey is set.
The text was updated successfully, but these errors were encountered:
The
HasBinaryUuid
trait already assumes that the primary key of the model should be a binary UUID:and also more or less expects the primary key name to be
uuid
(rather thanid
or whatever).So
HasUuidPrimaryKey
trait doesn't influence whether the primary key will be treated as UUID, which is kind of bad, if you just want to useHasBinaryUuid
trait for other attributes.But even if the intention of
HasUuidPrimaryKey
is just an overkill way to change the primary key name fromid
touuid
, it makes no sense thaHasUuidPrimaryKey
implementswhile
HasBinaryUuid
doesn't.The best behavior would be for
HasBinaryUuid
to leave the primary key alone, unlessHasUuidPrimaryKey
is set.The text was updated successfully, but these errors were encountered: