Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-180

[patch] The SmallIntType does not extend the default Type class

    Details

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

      Description

      The schematool has a check to see if a field is a string value, this check throws a small error because it passes an object into strtolower instead of a string value. The attached patch calls the method Type->getName() to check if the field is a string.

        Activity

        Hide
        Benjamin Eberlei added a comment -

        this shouldnt throw an error, all types have a __toString() method.

        Show
        Benjamin Eberlei added a comment - this shouldnt throw an error, all types have a __toString() method.
        Hide
        Marijn Huizendveld added a comment -

        You are right, the issue originated from the SmallIntType class which does not extend the Type class. See the attached patch file.

        Show
        Marijn Huizendveld added a comment - You are right, the issue originated from the SmallIntType class which does not extend the Type class. See the attached patch file.
        Hide
        Guilherme Blanco added a comment -

        Issue fixed!

        Thanks for the patch!

        Show
        Guilherme Blanco added a comment - Issue fixed! Thanks for the patch!

          People

          • Assignee:
            Roman S. Borschel
            Reporter:
            Marijn Huizendveld
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: