Gustav Elmgren
10/18/2022, 2:06 PM.with(Entity::relation
, but when said relation is accessed, outside of the transaction it was fetched from, I get Can't init value outside the transaction
. My understanding was that using With
would load all relations eagerly, is that wrong?Leonid Yavorskyi
10/18/2022, 7:26 PMNOTE: References that are eagerly loaded are stored inside the Transaction Cache, this means that they are not available in other transactions and thus must be loaded and referenced inside the same transaction.
Leonid Yavorskyi
10/18/2022, 7:27 PMGustav Elmgren
10/18/2022, 7:27 PM