Update advanced-field-value-conversion-using-custom-mapping-types.rst
This commit is contained in:
parent
205a5de4e5
commit
0ab2672872
@ -232,7 +232,7 @@ Example usage
|
||||
// Setup custom mapping type
|
||||
use Doctrine\DBAL\Types\Type;
|
||||
|
||||
Type::addType('point', 'Geo\Types\Point');
|
||||
Type::addType('point', 'Geo\Types\PointType');
|
||||
$em->getConnection()->getDatabasePlatform()->registerDoctrineTypeMapping('point', 'point');
|
||||
|
||||
// Store a Location object
|
||||
|
Loading…
Reference in New Issue
Block a user