I think I might have found a bug... While running ...
# lucee
g
I think I might have found a bug... While running some unit tests with TestBox... • Lucee 5.3.10.120 This works;
Copy code
local.deleteEntity = entityLoadByPK("customerAlertSpec", session.testEntityId);
This doesn't;
Copy code
local.deleteEntity = entityLoadByPK(name="customerAlertSpec", id=session.testEntityId);
// This doesn't work either
// local.deleteEntity = entityLoadByPK(name="customerAlertSpec", id="#session.testEntityId#");
I get the following error;
Copy code
'java.lang.Object lucee.runtime.functions.orm.EntityLoadByPK.call(lucee.runtime.PageContext, java.lang.String, java.lang.Object, boolean)'
Same result - with or without the unique attribute : (true OR false)
Also tried with the latest snapshot of 5.3.10 Also tried with 5.3.9.166 Using attribute names with the function causes the error. and while this works;
Copy code
local.deleteEntity = entityLoadByPK("customerAlertSpec", session.testEntityId);
This doesn't - irrespective of the value used for the 3rd argument.
Copy code
local.deleteEntity = entityLoadByPK("customerAlertSpec", session.testEntityId, true);
local.deleteEntity = entityLoadByPK("customerAlertSpec", session.testEntityId, false);