Browse Source

Merge pull request #14201 from Iandenh/patch-1

Small doc improvement EntityTrait
José Lorenzo Rodríguez 6 years ago
parent
commit
798cfb435d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Datasource/EntityTrait.php

+ 1 - 1
src/Datasource/EntityTrait.php

@@ -200,7 +200,7 @@ trait EntityTrait
      * the guarding for a single set call with the `guard` option:
      *
      * ```
-     * $entity->set(['name' => 'Andrew', 'id' => 1], ['guard' => true]);
+     * $entity->set(['name' => 'Andrew', 'id' => 1], ['guard' => false]);
      * ```
      *
      * You do not need to use the guard option when assigning fields individually: