EOModeler, search with Array
EOModeler, search with Array
- Subject: EOModeler, search with Array
- From: Daniel Hausberger <email@hidden>
- Date: Thu, 12 Feb 2015 14:25:32 +0100
- Importance: normal
- Sensitivity: Normal
Hi Experts,
i'm strugeling around with an (i think so) easy problem: What is the right way to make an Qualifier (for a Fetch-Specification in EOModeler) to not search with just one single Object, but with a list of objects:
For example this model:
1 Car-Brand produces many Cars (e.g. VW procudes Jetta, Golf, Passat, etc.)
If i want to search all Cars for "VW" my qualifier looks something like:
brand = $carBrand ... (eg. Car.fetchForList(ec, brandVW);)
But was is the correct way to search for a list of brands? e.g: What is the correct way to search for all Cars of "VW", "Audi", etc.?
I know that it is possible to search something like this:
brand = $carBrand1 or brand = $carBrand2, etc. (e.g. Car.fetchForList(ec, brandVW, brandAudi, etc.);).
But this is not the best way?
Thank you,
Daniel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden