Core Data fetch templates lose configuration when compiled

Originator:atomicbird
Number:rdar://13863607 Date Originated:10-May-2013 03:01 PM
Status:Open Resolved:
Product:iOS Product Version:6.1
Classification:Serious Bug Reproducible:Always
 
10-May-2013 03:01 PM Tom Harrington:
Summary:

Fetch request templates in a Core Data model lose most of their configuration when compiled.

Steps to Reproduce:

1. Add a managed object model to a project.
2. Add one or more fetch request templates to the model.
3. Configure one or more of the following attributes of a fetch request to have non-default values:

	Result Type
	Fetch limit
	Batch size
	Include Subentities
	Include Property Values
	Return Objects as Faults
	Include Pending Changes
	Return Distinct Results

Expected Results:

At run time, these fetch request templates would have the values configured for them in Xcode.

Actual Results:

Values of these attributes are unaffected by the values shown in Xcode:

Result type is always 1 ("Objects").
Fetch limit and batch size are always 0.
Return distinct results is NO.
All other settings listed above are YES.

Regression:

Unknown.

Notes:

A sample project is attached. This project has three fetch request templates in its data model using a variety of values for the above settings. At run time, the code looks up the templates and prints the values of these settings.


10-May-2013 03:01 PM Tom Harrington:
'FetchRequests.zip' was successfully uploaded

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!