Virtual attributes
I have several manual relationships that are populated using recursive queries, and I would like to be able to expose the depth and path fetched by those queries on the related resource. When not in the context of the relationship, these attributes don't make sense, and thus needn't be queried nor have columns in the table.
Is there a way to create "placeholder" attributes that will be valid in the resource struct, for purposes of manual population? Right now, I'm putting them in
Is there a way to create "placeholder" attributes that will be valid in the resource struct, for purposes of manual population? Right now, I'm putting them in
__metadata__, which hopefully is safe.