Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add methods to ERXKey that simplify creation of ERXExistsQualifiers. #553

Merged
merged 3 commits into from
Apr 12, 2014
Merged

Add methods to ERXKey that simplify creation of ERXExistsQualifiers. #553

merged 3 commits into from
Apr 12, 2014

Conversation

avendasora
Copy link
Member

Allows for easy creation of the sometimes-confusing ERXExistsQualifier. With these changes, you will be able to create an EOQualifier that will filter Person objects for ones that have related Pet objects or Person objects for ones that have related Pet objects that have their isDog attribute == true (i.e., People that have a pet dog) using:
EOQualifier thatDoNotHaveAPet = aPerson.PETS.isEmptyRelationship();
or
EOQualifier thatHaveAPetDog = aPerson.PETS.atLeastOneSatisfies(Pet.IS_DOG.isTrue());
or
EOQualifier thatHaveAPetDog = aPerson.PETS.anySatisfy(Pet.IS_DOG.isTrue());

…e.g., aPerson.PETS.atLeastOneSatisfies(Pet.IS_DOG.isTrue()); and aPerson.PETS.anySatisfy(Pet.IS_DOG.isTrue());
…ifier names, add isEmpty and isNotEmpty relationship qualifiers also.
hprange added a commit that referenced this pull request Apr 12, 2014
Add methods to ERXKey that simplify creation of ERXExistsQualifiers.
@hprange hprange merged commit 1284e0b into wocommunity:master Apr 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants