Skip to content

Loading…

DBAL-86: Documentation tells about setCustomTypes() but the method doesn't actually exist #2097

Closed
doctrinebot opened this Issue · 3 comments

2 participants

@doctrinebot

Jira issue originally created by user bguery:

In basic mapping section

Quote:

When you have implemented the type you still need to let Doctrine know about it. This can be achieved through the Doctrine\DBAL\Configuration#setCustomTypes(array $types) method. Doctrine\ORM\Configuration is a subclass of Doctrine\DBAL\Configuration, so the methods are available on your ORM Configuration instance as well.

The method seems to have been removed on this commit 354ede

@doctrinebot

Comment created by @beberlei:

Ah yes, it works like the code snippet right next to this paragraph:

<?php
// in bootstrapping code

// ...

use Doctrine\DBAL\Types\Type;

// ...

// Register my type
Type::addType('mytype', 'My\Project\Types\MyType');
@doctrinebot

Comment created by @beberlei:

Fixed.

@doctrinebot

Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.0.2 milestone
@doctrinebot doctrinebot closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.