n, can be null // Find all of the departments that have all of those employees ERXToManyQualifier q = new ERXToManyQualifier("toEmployees", employees); EOFetchSpecification fs = new EOFetchSpecification("Department", q, null); NSArray departments = ec.objectsWithFetchSpecification(fs); If you want to find say departments that have 5 or more of the given employees (imagine you have a list of 10 or so), then you could construct the qualifier like: ERXToManyQualifier q = new ERXToManyQualifier("toEmployees", employees, 5); or to find any department that has at least one of the given employees ERXToManyQualifier q = new ERXToManyQualifier("toEmployees", employees, 1);
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.