Details
Assignee
Michael OffnerMichael OffnerReporter
Michael Born @ OrtusMichael Born @ OrtusPriority
NewNew Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Michael Born @ Ortus
Michael Born @ OrtusPriority
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Created 7 July 2022 at 18:35
Updated 23 August 2022 at 05:29
When calling a lambda within an ORM entity, the lambda’s
this
scope andvariables
scope refer to an unpopulated entity. i.e. it is impossible to reference entity properties within a closure, even after setting the property on the entity beforehand.Take this code:
when run without ORM population involved, we get the name back:
"Michael"
.But when run as an ORM entity, the name is always
NULL
:See the attached .zip file test case, or screenshots comparing behavior between Lucee and ACF. (ACF outputs
"Michael"
property value in both the native component test and the ORM entity test.)