qqq
This commit is contained in:
+1
-4
@@ -223,10 +223,7 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, T
|
|||||||
*/
|
*/
|
||||||
public function getPrimaryValue(): ?int
|
public function getPrimaryValue(): ?int
|
||||||
{
|
{
|
||||||
if ($this->hasPrimary()) {
|
return $this->_oldAttributes[$this->getPrimary()] ?? null;
|
||||||
return $this->getAttribute($this->getPrimary());
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user