myTest = new test();
wequery = new Query();
sql = "INSERT INTO TData
(data)
VALUES
('Hello')";
wequery.setSQL(sql);
transaction{
myTest.setthename('name');
wequery.execute();
}
this will return error:
this feature is not supported
The error occurred on line 110 in file /org/lucee/cfml/Base.cfc.
If I remove the transaction, then this is working fine. Or If the code like this:
transaction{
wequery.execute();
}
this is work fine too. Anyone has ever get this problem? FYI, if I set this.ormEnabled = false, then no error. So it seems lucee still have bug with ORM things ?
Any solution to this problem? I seem to be encountering the same issue. Without the transaction {}, ormEntityNew / ormEntitySave code works fine, but with it, I get the following error:
class java.util.ArrayList cannot be cast to class java.lang.String (java.util.ArrayList and java.lang.String are in module java.base of loader ‘bootstrap’)
The model in question has custom getters…if I remove the custom getters from model, then it seems to work without issue.