Skip to content
Snippets Groups Projects
Commit b2e7da58 authored by Jared Hancock's avatar Jared Hancock
Browse files

orm: Implement annotation support

This allows for things like related COUNTs and such:

```php
ThreadEntry::objects()->annotate(
    'attachment_count'=>Aggregate::COUNT('attachments')
    )
    ->filter(array('attachments__type__contains'=>'image/'))
    ->filter(array('attachment_count__gt'=>0));
```
This would find all thread entries with at least one image attached.
parent e975d681
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment