SELECT field groups
Interesting feature request. The ability to request fields that are grouped in the output.
For example:
$result = $db->mytable->find(array(), array('id', dob', 'name' => array('first' => 'first_name', 'last' => 'last_name')));
dump($result->fetch());
Would output something like:
{
"id": 1,
"dob": "1978-12-13",
"name": {
"first": "Jamie",
"last": "Carl"
}
}