From 053929712f55742341839d6e3e6f42f3b68610a8 Mon Sep 17 00:00:00 2001 From: kenjis Date: Mon, 26 Feb 2024 17:15:38 +0900 Subject: [PATCH] docs: break long lines --- user_guide_src/source/models/entities.rst | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/user_guide_src/source/models/entities.rst b/user_guide_src/source/models/entities.rst index d3443093d47e..202e39ed7365 100644 --- a/user_guide_src/source/models/entities.rst +++ b/user_guide_src/source/models/entities.rst @@ -62,13 +62,14 @@ Create the model first at **app/Models/UserModel.php** so that we can interact w The model uses the ``users`` table in the database for all of its activities. -We've set the ``$allowedFields`` property -to include all of the fields that we want outside classes to change. The ``id``, ``created_at``, and ``updated_at`` fields -are handled automatically by the class or the database, so we don't want to change those. - -Finally, we've set our Entity -class as the ``$returnType``. This ensures that all methods on the model that return rows from the database will return -instances of our User Entity class instead of an object or array like normal. +We've set the ``$allowedFields`` property to include all of the fields that we +want outside classes to change. The ``id``, ``created_at``, and ``updated_at`` +fields are handled automatically by the class or the database, so we don't want +to change those. + +Finally, we've set our Entity class as the ``$returnType``. This ensures that all +methods on the model that return rows from the database will return instances of +our User Entity class instead of an object or array like normal. Working with the Entity Class =============================