This commit is contained in:
2023-12-18 15:11:04 +08:00
parent 7d06791d67
commit c9255a6c2b
+11
View File
@@ -828,4 +828,15 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, \
return (new static())->{$name}(...$arguments);
}
/**
* @param string $field
* @return array
*/
public function getOldAttribute(string $field): array
{
// TODO: Implement getOldAttribute() method.
return $this->_oldAttributes;
}
}