__construct() public method

public __construct ( object $entity, string $relationship_name, string $sort_by, Direction $direction = null, integer $start = null, integer $end = null )
$entity object Entity to retrieve relationships from
$relationship_name string Name of the relationship on provided entity
$sort_by string Sort by column
$direction Bravo3\Orm\Enum\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
Example #1
0
 /**
  * @param string    $class_name Class name of table to query
  * @param string    $sort_by    Sort by column
  * @param Direction $direction  Assumes ascending if omitted
  * @param int       $start      Start index (inclusive), null/0 for beginning of set
  * @param int       $end        Stop index (inclusive), null/-1 for end of set, -2 for penultimate record
  */
 public function __construct($class_name, $sort_by, Direction $direction = null, $start = null, $end = null)
 {
     parent::__construct($class_name, null, $sort_by, $direction, $start, $end);
 }