diff --git a/Database/Base/BaseActiveRecord.php b/Database/Base/BaseActiveRecord.php index 8d4caf96..7d4df0b4 100644 --- a/Database/Base/BaseActiveRecord.php +++ b/Database/Base/BaseActiveRecord.php @@ -180,10 +180,10 @@ abstract class BaseActiveRecord extends Component implements IOrm, \ArrayAccess } /** - * @return null|string + * @return int|null * @throws Exception */ - public function getPrimaryValue(): ?string + public function getPrimaryValue(): ?int { if (!$this->hasPrimary()) { return null;