CodeIgniter Forums

Full Version: Datamapper object to_array() - including related objects
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum


When you include a related object as a field in the parameters the related object is returned as an array of its id's. This is the intended behaviour of datamapper, however is it possible to instead output the full object?