I have a problem when serializing an ORM relationship shows only the first two records. The rest just show [] empty.
Here is an example relationship:
property name="endorsements" singularname="endorsement" fieldtype="one-to-many" lazy="false" fkcolumn="xxx" cfc="endorsements" remotingfetch="true";
Getting JSON:
policy = entityLoad("policy",1018379202)[1]; serializeJSON( policy );
And the abbreviated part of JSON:
{"id":12321,"endorsements":[{"effectiveDate":"July, 01 2009 00:00:00","active":true}, {"effectiveDate":"July, 01 2009 00:00:00","active":true}, "","","","","","","","",""]}
Empty lines should be other entries in the relation.
I checked the debug files that the Hibernate request returns all the records, and cfdump also shows this.
Thoughts?
source share