Title:
SerializeJSON() does not fully serialize array of entities from Entity Load
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Joel Watson / Joel Watson (existdissolve)
Created: 04/25/2012
Components: Language
Versions: 10.0
Failure Type:
Found In Build/Fixed In Build: Public Beta / 285099
Priority/Frequency: Major / All users will encounter
Locale/System: English / Win All
Vote Count: 7
Duplicate ID: CF-3145120
Related Bugs:
CF-3145120 - Similar to
Problem Description: When serializing result from EntityLoad(), array of entities are not fully represented in the JSON. Only the first two entities in the array are returned, while any additional objects in the array are represented simply as "{}".
This is the same issue reported in https://bugbase.adobe.com/index.cfm?event=bug&id=3042650 for CF9.
Steps to Reproduce: Create two persistent entities, one for Art and one for Artists (using cfartgallery datasource). On Artists, create a one-to-many relationship with Art, using remotingfetch=true and fkcolumn=ArtistID
property name="arts" fieldtype="one-to-many" remotingfetch="true" cfc="art" fkcolumn="artistid";
Actual Result: In the first result in the serialized json, the "arts" array has 5 elements. However, only the first 2 art entities are represented as expected, while the remaining 3 are represented as "{}". The same behavior occurs for other artist-art results.
Expected Result: All entities within the arts array should be populated with the correct structure and properties, just as if the result of EntityLoad("Artists") were dumped without serialization.
Any Workarounds: None that are known.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3175667
Keywords:
FixTested
External Customer Info:
External Company:
External Customer Name: existdissolve
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: