Skip to content

Commit 97a4cbf

Browse files
authored
Add usage for whole-entity hasChanged()
1 parent 25dc80b commit 97a4cbf

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

user_guide_src/source/models/entities.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,3 +373,6 @@ attribute to check::
373373

374374
$user->name = 'Fred';
375375
$user->hasChanged('name'); // true
376+
377+
Or to check the whole entity for changed values omit the parameter:
378+
$user->hasChanged(); // true

0 commit comments

Comments
 (0)