HierarchicalEntity
A hierarchical entity has nested parent/child levels.
A special _depth
field is available to these entities. Adding it to the select clause
will cause returned records to be 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>