Access properties on eagerly loaded relationships?
I don't know how to better approach this, any help appreciated.
I have
I want (in this case Table EditAction, I'm okay with separate EditAction as well)
But I can't access relationship1field this way, what should I do? I can access $this->parentField and the field gets populated, but not $this->relationship1field or this->parent->relationship1field. I wonder if I need to separately save in a variable, but that would be n+1 query for something that already should be there and doesn't sit right with me (or maybe that's the actual best practice here so if anyone could enlighten me I'd appreciate it).
0 Replies