Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-3223

Failing test (get id return string type)

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: Git Master
    • Fix Version/s: None
    • Component/s: ORM
    • Labels:
      None
    • Environment:
      Linux Ubuntu 13.10 / PHP 5.5.3 / Mysql 5.5.x

      Description

      I found an issue in a specific case, when you find a child entity (JOINED) which is linked to another child entity.

      If I clone the linked child entity and call getId(), it gives the value as 'string' rather than 'integer'. If I set the property id as public, there is no problem.

      If I call getId on the child entity rather than the clone, it gives 'integer' as expected. So it's weird...

      See failing test here: https://github.com/doctrine/doctrine2/pull/1086

        Issue Links

          Activity

          Hide
          Doctrine Bot added a comment -

          A related Github Pull-Request [GH-1086] was closed:
          https://github.com/doctrine/doctrine2/pull/1086

          Show
          Doctrine Bot added a comment - A related Github Pull-Request [GH-1086] was closed: https://github.com/doctrine/doctrine2/pull/1086

            People

            • Assignee:
              Marco Pivetta
              Reporter:
              Thomas Lallement
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: