src/mako/database/midgard/Query.php
protected function loadIncludes(array $results): void
	{
		$includes = $this->parseIncludes();

		foreach($includes['this'] as $include => $criteria)
		{
			$forward = $includes['forward'][$include] ?? [];

			$results[0]->$include()->eagerLoad($results, $include, $criteria, $forward);
		}
	}
protected function loadIncludes(array $results): void
	{
		$includes = $this->parseIncludes();

		foreach($includes['this'] as $include => $criteria)
		{
			$forward = $includes['forward'][$include] ?? [];

			$results[0]->$include()->eagerLoad($results, $include, $criteria, $forward);
		}
	}
protected function loadIncludes ( array $ results ) : void { $ includes = $ this -> parseIncludes ( ) ; foreach ( $ includes [ 'this' ] as $ include => $ criteria ) { $ forward = $ includes [ 'forward' ] [ $ include ] ?? [ ] ; $ results [ 0 ] -> $ include ( ) -> eagerLoad ( $ results , $ include , $ criteria , $ forward ) ; } }
Load includes.

@param array $results Loaded records
Load includes .