#[SOLVED] is it possible to have a relationship but to get get it on demand? (Answer: no)

1 messages · Page 1 of 1 (latest)

waxen coral
#

i'm about to have many models, related to each other, and in most cases, i wouldn't like to get the whole tree... the whole model with it's relations, and relations of relations....
Is it possible?

lament parcel
#

You can use the select query to select everything but the related item

#

but right now relationships are pretty inefficient, so you may be better or saving the related item ID in a column and doing the join yourself when fetching the data

waxen coral
#

exactly what i'm currently doing 🙂 Thanks !

#

[solved] is it possible to have a relationship but to get get it on demand? (Answer: no)