mini\Database\Model::getOriginalPrimaryKey()
Method
protected
Signature
protected function getOriginalPrimaryKey(): mixed
Returns
mixed
Documentation
Get the original primary key from when entity was loaded.
Returns null for new (unsaved) entities. Used internally for insert vs update detection and authorization checks.