Skip to content

Fix `data\source\Database::read()` hack. #751

Closed
wants to merge 3 commits into from

1 participant

@jails
Union of RAD member
jails commented Dec 19, 2012

With this PR array('return' => 'array') option on queries with relations will return something like the following:

array(
    'field1' => 'value1',
    'field2' => 'value2',
    'field3' => 'value3',
    /* ... other fields ... */
    'relation_fieldname' => array(
             'field1' => 'value1',
             'field2' => 'value2',
             'field3' => 'value3',
             /* ... other fields ... */
             'subrelation_fieldname' => array(
                   /*...*/
             )
 );
@jails jails closed this Dec 19, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.