Skip to content

Commit

Permalink
Fixed incorrect reference when mapping custom type
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyharris committed Jun 2, 2017
1 parent 057fd61 commit 58168f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion en/orm/database-basics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ the type mapping. During our application bootstrap we should do the following::

use Cake\Database\Type;

Type::map('json', 'Cake\Database\Type\JsonType');
Type::map('json', 'App\Database\Type\JsonType');

We can then overload the reflected schema data to use our new type, and
CakePHP's database layer will automatically convert our JSON data when creating
Expand Down

0 comments on commit 58168f7

Please sign in to comment.