Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-86

Documentation tells about setCustomTypes() but the method doesn't actually exist

    Details

    • Type: Documentation Documentation
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-BETA2, 2.0.0-BETA3, 2.0.0-BETA4, 2.0.0-RC1-RC3, 2.0-RC4, 2.0-RC5, 2.0, 2.0.1
    • Fix Version/s: 2.0.2
    • Component/s: None
    • Labels:
      None

      Description

      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

        Activity

        Hide
        Benjamin Eberlei added a comment -

        Fixed.

        Show
        Benjamin Eberlei added a comment - Fixed.
        Hide
        Benjamin Eberlei added a comment -

        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');
        
        Show
        Benjamin Eberlei added a comment - 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');

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Boris Guéry
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: