projectwonder/wonder — pull request #75 by darkv (2011-12-08 12:44:05+00:00)
Title: add distinct flag to ERXKeyFilter

This patch adds a flag to ERXKeyFilter to enable filtering to-many relationships for distinct objects. For that it uses either the unique operator of ERXArrayUtilities '@unique' or provides a method that takes a boolean.
When not using those two approaches the current logic is maintained thus breaking no ones code.

Example:

ERXKeyFilter companyFilter = ERXKeyFilter.filterWithAttribtues();
companyFilter.include(ERXKey.unique(Company.EMPLOYEES));
companyFilter.include(Company.CLIENTS).setDistinct(true);