Skip to content

Commit

Permalink
Merge pull request #1514 from acleon/custom-mapping-doc-update
Browse files Browse the repository at this point in the history
Correct Class Name in Custom Mapping Type Docs
  • Loading branch information
malarzm committed Oct 17, 2016
2 parents 970ae2d + f1d403a commit 2de3ae3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/en/reference/basic-mapping.rst
Expand Up @@ -472,7 +472,7 @@ handy when you're missing a specific mapping type or when you want
to replace the existing implementation of a mapping type.

In order to create a new mapping type you need to subclass
``Doctrine\ODM\MongoDB\Mapping\Types\Type`` and implement/override
``Doctrine\ODM\MongoDB\Types\Type`` and implement/override
the methods. Here is an example skeleton of such a custom type
class:

Expand All @@ -482,7 +482,7 @@ class:
namespace My\Project\Types;
use Doctrine\ODM\MongoDB\Mapping\Types\Type;
use Doctrine\ODM\MongoDB\Types\Type;
/**
* My custom datatype.
Expand Down Expand Up @@ -521,7 +521,7 @@ Restrictions to keep in mind:

When you have implemented the type you still need to let Doctrine
know about it. This can be achieved through the
``Doctrine\ODM\MongoDB\Mapping\Types#registerType($name, $class)``
``Doctrine\ODM\MongoDB\Types\Type#registerType($name, $class)``
method.

Here is an example:
Expand Down

0 comments on commit 2de3ae3

Please sign in to comment.