In ColdFusion 9 I am serializing an ORM entity. When doing this, though, it’s missing relational entities.
The serializeJSON() method ColdFusion uses to convert complex objects into JSON notation doesn’t seem to work correctly on ORM objects. Any object that had a property that was an array of other objects is not returned when using serializeJSON() on ORM objects!
Has anyone tackled this sort of issue before? How did you handle it?
Thanks.
Issue resolved! This is not a bug you have to set remotingFetch to true! By default it is set to false for properties with one-to-one, one-to-many, many-to-one, or many-to-many relationships.