Documentation

HierarchicalEntity

A hierarchical entity has nested parent/child levels.

The calculated _depth and _descendents fields are automatically added to these entities. Adding either to the select clause will return records pre-sorted in nested order.

NOTE: In order to use this trait, an entity must have a column that is an EntityReference to itself. Note: Hierarchical sorting is performed in-memory, so this is not suitable for entities with unlimited records.

Table of Contents

Methods

getInfo()  : array<string|int, mixed>
Automatically adds "parent_field" info, if it hasn't already been declared via `@parentField` annotation.

Methods

getInfo()

Automatically adds "parent_field" info, if it hasn't already been declared via `@parentField` annotation.

public static getInfo() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results