coldbox-modules / quick

A ColdBox ORM Engine
https://quick.ortusbooks.com
MIT License
23 stars 19 forks source link

Cannot use columns in `variables._key` and an alias for that column #235

Open elpete opened 1 year ago

elpete commented 1 year ago

Given an entity:

component {

    property name="groupId" column="aliased_group_id";
    property name="memberId" column="aliased_member_id";

    variables._key = [ "aliased_group_id", "aliased_member_id" ];

    this.memento = { "defaultIncludes": [ "groupId", "memberId" ] };

}

It should return correct values, but it doesn't seem to until the variables._key is updated to use the aliases.

elpete commented 1 year ago

cc @egomezm