Uploaded image for project: 'Railo'
  1. Railo
  2. RAILO-1321

ORM-entityLoad sortOrder should be case insensitive

    Details

    • Steps to Reproduce:
      Hide

      See attached test case.

      Show
      See attached test case.
    • Workaround Description:
      Hide

      Property names passed to sortOrder must match case of property in persistent CFC definition, as a workaround.

      Show
      Property names passed to sortOrder must match case of property in persistent CFC definition, as a workaround.

      Description

      A property name passed to entityLoad function's sortOrder attribute should be case INsensitive, but if case does not match the property (column) name precisely, an exception is thrown.

      For example, entityLoad( 'Foo', {}, 'FOO' ), when property name is actually 'foo' and not 'FOO', throws "could not resolve property: FOO of: EntityName" org.hibernate.QueryException exception.

      This is very limited to dynamic programming and is not consistent with ACF 9.0.1 behavior. I will attach test code to demonstrate bug.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                jamiekrug Jamie Krug
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: