Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2152

Values do not covert if type is custom

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Can't Fix
    • Affects Version/s: Git Master
    • Fix Version/s: None
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None
    • Environment:
      PHP 5.3.15, PDO mysql, sumbodule:
      git submodule
       48dcee9d60459fce1542d11536d465f5d89cff55 library/doctrine (2.2.0-BETA2-160-g48dcee9)

      Description

      I have a custom type EnumDatatype. If I set single parameter for repository's method findBy everything works fine: value converted to database format (method convertToDatabaseValue invoked). But if I specify array of values of such type it will not convert to database format.

        Activity

        Hide
        Benjamin Eberlei added a comment -

        This can't be fixed because of architectural reasons. Only strings and integers can be arrays

        Show
        Benjamin Eberlei added a comment - This can't be fixed because of architectural reasons. Only strings and integers can be arrays
        Hide
        Fabio B. Silva added a comment -

        Hi Valery,

        Did you implemented canRequireSQLConversion ?
        Could you try to add a failing test case ?

        Cheers..

        Show
        Fabio B. Silva added a comment - Hi Valery, Did you implemented canRequireSQLConversion ? Could you try to add a failing test case ? Cheers..

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Valery Dubrava
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: