coldbox-modules / quick

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

asMemento doesn't fire with a relationship.withDefault #159

Open elpete opened 2 years ago

elpete commented 2 years ago

Entity 1 hasOne Entity 2 (with default) so that even if it doesn't exist, we should get an empty memento.

This does not work:

Entity1.Entity2().asMemento().get();

But this does:

Entity1.Entity2().get().getMemento();

Reported by: @dbelanger

dbelanger commented 2 years ago

Ah, was I supposed to report that here instead of Jira?

elpete commented 2 years ago

I use this for modules. I like having the issues right here with the code.

It's not mandatory to use Jira for Ortus. They let us choose.

(This will of course open the complaint that we don't have everything in one place. 😅 )