Cant ORM Refresh if duplicate property column used with foreign key

Description

When creating a ORM mapping, if I happen to make 2 properties to the same referenced column, which is used when making a foreign key and don't have "insert="false" update="false" to the second column, then I'll get the error "Repeated column in mapping for entity: SupportTicket column: userID (should be mapped with insert="false" update="false")"

In this example I'm mapped the column "userID" twice.

The problem occurs when I either remove the second property ( the duplicate) or set insert="false" update="false" on the second property and I go to do a ORMRefresh, the error still remains. Currently, the only way I can remedy this is to restart Lucee and then it works just fine so looks to be an ORMRefresh problem

User table
-Id
first name
lastname

Supportticket table
...
userID
companyUserID
....

============================
On the supportticket table, I have two foreign keys. they link like....
supportticket.userID = users.ID
supportTicket.companyUserId = users.ID

Environment

Windows 10
MySQL 5.1

Activity

Show:
Michael Offner
October 31, 2016, 9:50 AM

please use existing ORM testcases as a template.

Cannot Reproduce

Assignee

Michael Offner

Reporter

Tyron Foston

Priority

Major

Labels

Fix versions

None

Affects versions

Configure