We're updating the issue view to help you get more done. 

Extend SearchResult::get() to provide value counts

Description

Extend get() syntax to allow for return of counts of repeating values. For example, to get the number of child records one could use either

$instance->get("ca_objects.children._count")

or

$instance->get("ca_objects.children", ["returnAsCount" => true])

The former option makes counts usable in display templates, Eg.:

The number of children is ^ca_objects.children_count

Environment

None

Assignee

User known

Reporter

User known

Labels

Components

Fix versions

Affects versions

Priority

Major
Configure