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

Renamed removesForeignKeysFromRowValues property #831

Merged
merged 1 commit into from
Mar 27, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@
* <ol>
* <li>er.extensions.eof.ERXQuery.useBindVariables=false</li>
* <li>er.extensions.eof.ERXQuery.useEntityRestrictingQualifiers=true</li>
* <li>er.extensions.eof.ERXQuery.removesForeignKeysFromRowValues=true</li>
* <li>er.extensions.eof.ERXQuery.removeForeignKeysFromRowValues=true</li>
* </ol>
*
* @author Ricardo J. Parada
Expand Down Expand Up @@ -770,7 +770,7 @@ protected int doPerform(EOAdaptorChannel channel) {
// Fetch results
try {
boolean hasInitValues = initValues.count() > 0;
boolean removesForeignKeysFromRowValues = ERXProperties.booleanForKeyWithDefault("er.extensions.eof.ERXQuery.removesForeignKeysFromRowValues", true);
boolean removeForeignKeysFromRowValues = ERXProperties.booleanForKeyWithDefault("er.extensions.eof.ERXQuery.removeForeignKeysFromRowValues", true);
NSMutableDictionary<String, Object> row = channel.fetchRow();
while (row != null) {
// Replace any foreign keys with their corresponding relationship keys
Expand All @@ -785,7 +785,7 @@ protected int doPerform(EOAdaptorChannel channel) {
eo = ERXEOControlUtilities.objectWithPrimaryKeyValue(ec, entityName, primaryKeyValue, null, refreshRefetchedObjects);
row.setObjectForKey(eo, relationshipKey);
}
if (removesForeignKeysFromRowValues) {
if (removeForeignKeysFromRowValues) {
row.removeObjectForKey(foreignKey);
}
}
Expand Down