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

ORM: mappedBy seems to reference the local component, instead of the mapped one

    Details

      Description

      I've also mentioned this at the Railo forum; https://groups.google.com/forum/?fromgroups=#!topic/railo/nWY6IP-NGvE but i believe this is an issue within Railo.

      I have a component Product.cfc, containing:

      property name="stock" fieldtype="one-to-many" cfc="apps.webshop.models.ProductStock" fkColumn="productid" mappedby="owner";

      In my ProductStock.cfc, i have:

      property name="owner" cfc="apps.webshop.models.Product" fieldtype="many-to-one" fkColumn="productid";

      But when doing an ormReload(), i get: property [owner] not found on entity [Product]

      I believe the local component class is referenced, instead of using the component cfc attribute to assign an inverse mapping.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                pionic Marius van Zwijndregt
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: