We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1abc4b5 + dc969c1 commit 7c83f0bCopy full SHA for 7c83f0b
1 file changed
user_guide_src/source/models/entities.rst
@@ -425,11 +425,11 @@ Custom casting
425
You can define your own conversion types for getting and setting data.
426
427
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::
+Let's say the class will be located in the **app/Entities/Cast** directory::
429
430
<?php
431
432
- namespace App\Entity\Cast;
+ namespace App\Entities\Cast;
433
434
use CodeIgniter\Entity\Cast\BaseCast;
435
@@ -464,7 +464,7 @@ Now you need to register it::
464
465
// Bind the type to the handler
466
protected $castHandlers = [
467
- 'base64' => \App\Entity\Cast\CastBase64::class,
+ 'base64' => \App\Entities\Cast\CastBase64::class,
468
];
469
}
470
0 commit comments