Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2838

Leaky abstraction when applying Criteria to hydrated/non-hydrated PersistentCollection

    Details

    • Type: Bug Bug
    • Status: Reopened
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.4.1
    • Fix Version/s: None
    • Component/s: ORM
    • Labels:
      None

      Description

      When applying a Criteria to a PersistentCollection that has been hydrated the field names must be camel case, if the collection has not yet been hydrated the field names must be underscore separated.

      The github repo linked here contains a simplified testcase for the matrix of hydrated/non-hydrated entities and camel case/underscore separated fields.

      https://github.com/ptlis/DoctrineTestcase

        Activity

        Hide
        Marco Pivetta added a comment -

        We can't check out an entire project just to test a bug.

        Please write an actual functional test case that can be integrated into the Doctrine ORM test suite.

        Show
        Marco Pivetta added a comment - We can't check out an entire project just to test a bug. Please write an actual functional test case that can be integrated into the Doctrine ORM test suite.
        Hide
        brian ridley added a comment -

        Hi,

        i'm happy to do so - i'll take a look at this over the weekend.

        Show
        brian ridley added a comment - Hi, i'm happy to do so - i'll take a look at this over the weekend.

          People

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

            Dates

            • Created:
              Updated: