Skip to content

Commit d82a9bb

Browse files
committed
docs: add @todo
1 parent 366bcbe commit d82a9bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

system/Model.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,12 +799,13 @@ protected function objectToRawArray($data, bool $onlyChanged = true, bool $recur
799799

800800
$primaryKey = $data->{$this->primaryKey};
801801

802-
// Restore Entity cast setting.
802+
// Restore Entity casting setting.
803803
$data->cast($cast);
804804
}
805805

806806
// Always grab the primary key otherwise updates will fail.
807807
if (
808+
// @TODO Should use `$data instanceof Entity`.
808809
method_exists($data, 'toRawArray')
809810
&& (
810811
! empty($properties)

0 commit comments

Comments
 (0)