Frans,
Odd question, but you're used to that from me.
Is there a way to add a filter to a single entity fetch (using a PK)?
I need this because we have a (very) complex security system, where some entity access relies on joins.
I can't give a "real" illustration without giving details about a client's schema. But imagine a user trying to fetch an order for a customer, and the user's access to that customer was determined by a third table, call it customer_user_access. So we would have to create relations Order=>Customer=>Customer_User_Access and use the user_id as a filter.
What I may need to do is fetch a typed list first (with filtering/relations), and then only fetch the entity if the typed list returns a row. If I could do it with a filter/relations on the entity fetch, that would be preferable.
I hope that all makes sense. It's actually more complex than my illustration, but the main question is simple.
Thanks,
Phil