How can I filter options in AttachAction based on the ownerRecord of my RelationManager?

Title says it basically, I need to reduce the scope of AttachAction options based on a type attribute of $this->ownerRecord in my RelationManager. I'm using recordSelectOptionsQuery, but occasionally it causes problems with $this being called outside of an object context.
1 Reply
Patrick Boivin
but occasionally it causes problems with $this being called outside of an object context
can you share more details on this error?

Did you find this page helpful?