This commit is contained in:
2020-12-17 14:19:03 +08:00
parent 0456a155c8
commit 57dd2b7b1c
+2 -2
View File
@@ -180,10 +180,10 @@ abstract class BaseActiveRecord extends Component implements IOrm, \ArrayAccess
} }
/** /**
* @return null|string * @return int|null
* @throws Exception * @throws Exception
*/ */
public function getPrimaryValue(): ?string public function getPrimaryValue(): ?int
{ {
if (!$this->hasPrimary()) { if (!$this->hasPrimary()) {
return null; return null;