Skip to content

Commit 7c83f0b

Browse files
authored
Merge pull request #5481 from kenjis/fix-docs-entities.rst
docs: fix entities.rst
2 parents 1abc4b5 + dc969c1 commit 7c83f0b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

user_guide_src/source/models/entities.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -425,11 +425,11 @@ Custom casting
425425
You can define your own conversion types for getting and setting data.
426426

427427
At first you need to create a handler class for your type.
428-
Let's say the class will be located in the **app/Entity/Cast** directory::
428+
Let's say the class will be located in the **app/Entities/Cast** directory::
429429

430430
<?php
431431

432-
namespace App\Entity\Cast;
432+
namespace App\Entities\Cast;
433433

434434
use CodeIgniter\Entity\Cast\BaseCast;
435435

@@ -464,7 +464,7 @@ Now you need to register it::
464464

465465
// Bind the type to the handler
466466
protected $castHandlers = [
467-
'base64' => \App\Entity\Cast\CastBase64::class,
467+
'base64' => \App\Entities\Cast\CastBase64::class,
468468
];
469469
}
470470

0 commit comments

Comments
 (0)