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

        Boris Guéry created issue -
        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');
        Hide
        Benjamin Eberlei added a comment -

        Fixed.

        Show
        Benjamin Eberlei added a comment - Fixed.
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.0.2 [ 10118 ]
        Resolution Fixed [ 1 ]
        Benjamin Eberlei made changes -
        Workflow jira [ 12357 ] jira-feedback2 [ 17693 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 17693 ] jira-feedback3 [ 20048 ]

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DBAL-86, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

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

            Dates

            • Created:
              Updated:
              Resolved: