BasePayment doesn't specify a primary key, so it will use whatever is defined in the non-abstract class.
This is frequently id, but can be any value (I use uuid in a few apps of mine).
This tiny change makes the provider use the pk alias, instead of hardcoding id. This is functionally equivalent if your primary key is id, but also works if your primary key is uuid or anything else.
BasePayment
doesn't specify a primary key, so it will use whatever is defined in the non-abstract class.This is frequently
id
, but can be any value (I useuuid
in a few apps of mine).This tiny change makes the provider use the
pk
alias, instead of hardcodingid
. This is functionally equivalent if your primary key isid
, but also works if your primary key isuuid
or anything else.