Commit 3b1a2e77 authored by hansbrix's avatar hansbrix

added output example of aggregate

parent f5223491
......@@ -8,4 +8,7 @@ $query->select('u.*, COUNT(p.id) num_posts')
->where('u.id = ?', 1)
->groupby('u.id')
->execute();
echo $query->Posts[0]->num_posts . ' posts found';
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment