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

orm error - attribute [column] is required

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.1
    • Fix Version/s: 3.1
    • Labels:

      Description

      Getting this error with a many-to-one property definition. The property declaration works on ACF but throws this error on Railo 3.1.2.020

      attribute [column] is required

      Here is a use case, it chokes on the user property in address.cfc. Adding the column attribute is a work around but that is not required in ACF.

      // address.cfc
      component persistent="true"

      { property name="id" fieldtype="id" ormtype="integer" generator="native"; property name="label" type="string" ormtype="text"; property name="user" cfc="user" fieldtype="many-to-one" fkcolumn="userId"; }

      // user.cfc
      component persistent="true"

      { property name="id" fieldtype="id" ormtype="integer" generator="native"; property name="addresses" singularname="address" cfc="address" fieldtype="one-to-many" fkcolumn="userId" cascade="all-delete-orphan"; }

      Here is a report of the issue back in May but I wasn't able to find the JIRA ticket on it, and I am still having the issue

      http://groups.google.com/group/railo-prerelease/msg/d7e057ed91a890f7

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                webflint Brett S
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: