Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-928

Using uninitialised variable in lib/Doctrine/ORM/Tools/ConvertDoctrine1Schema.php

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-RC2
    • Fix Version/s: 2.0.1, 2.1
    • Component/s: Tools
    • Security Level: All
    • Labels:
      None
    • Environment:
      FreeBSD

      Description

      A call:

      $metadata->setSequenceGeneratorDefinition($definition);

      is performed a line above the definition of the $definition variable.

      Fix: Switch those two lines:

      // $metadata->setSequenceGeneratorDefinition($definition); //was here
      $definition = array(
      'sequenceName' => is_array($column['sequence']) ? $column['sequence']['name']:$column['sequence']
      );
      $metadata->setSequenceGeneratorDefinition($definition); //belongs here

      On line 191 in RC2 release.

        Activity

        Hide
        Benjamin Eberlei added a comment -

        Fixed

        Show
        Benjamin Eberlei added a comment - Fixed

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Jiri Helmich
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: