public __construct ( object $entity, string $relationship_name, string $sort_by, |
||
$entity | object | Entity to retrieve relationships from |
$relationship_name | string | Name of the relationship on provided entity |
$sort_by | string | Sort by column |
$direction | Assumes ascending if omitted | |
$start | integer | Start index (inclusive), null/0 for beginning of set |
$end | integer | Stop index (inclusive), null/-1 for end of set, -2 for penultimate record |