Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-225

ConvertMappingTask invalid method _getSourceByType($type, $source)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0-ALPHA4
    • Component/s: ORM, Tools
    • Security Level: All
    • Labels:
      None

      Description

      The method _getSourceByType($type, $source) in the class ConvertMappingTask has a little error: there are no brackets when propery getConfiguration are called. See code below, the error occurs on line marked with red:

      private function _getSourceByType($type, $source)
      {
      // If --from==database then the source is an instance of SchemaManager
      // for the current EntityMAnager
      if ($type == 'database') {
      $em = $this->getConfiguration->getAttribute('em');
      return $em->getConnection()->getSchemaManager();
      } else

      { return $source; }

      }

        Activity

        Hide
        Guilherme Blanco added a comment -

        In r6981 this issue was fixed. Thanks for the report!

        Show
        Guilherme Blanco added a comment - In r6981 this issue was fixed. Thanks for the report!
        Hide
        Valery Dubrava added a comment -

        Thanks for fix =)

        Show
        Valery Dubrava added a comment - Thanks for fix =)

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Valery Dubrava
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: