private function parseIncluding($rows)
	{
		$subs       = null;
		$constraint = null;
		foreach ($this->includes as $relationship)
		{
			// Check for array, meaning we have relationship_name => constraint
			if (is_array($relationship))
			{
				list($relationship, $constraint) = $relationship;
			}

			// Parse for nested relationships
			if (strpos($relationship, '.'))
			{
				list($relationship, $subs) = explode('.', $relationship, 2);
			}

			// If we have subs and a constraint, the constraint should apply to the subs, not the intermediate relation
			if (isset($subs) && isset($constraint))
			{
				$subs       = [$subs, $constraint];
				$constraint = null;
			}

			// Get the actual rows
			$rows = $this->$relationship()->seedWithRelation($rows, $relationship, $constraint, $subs);

			// Reset some vars
			$subs       = null;
			$constraint = null;
		}

		return $rows;
	}
private function parseIncluding($rows)
	{
		$subs       = null;
		$constraint = null;
		foreach ($this->includes as $relationship)
		{
			// Check for array, meaning we have relationship_name => constraint
			if (is_array($relationship))
			{
				list($relationship, $constraint) = $relationship;
			}

			// Parse for nested relationships
			if (strpos($relationship, '.'))
			{
				list($relationship, $subs) = explode('.', $relationship, 2);
			}

			// If we have subs and a constraint, the constraint should apply to the subs, not the intermediate relation
			if (isset($subs) && isset($constraint))
			{
				$subs       = [$subs, $constraint];
				$constraint = null;
			}

			// Get the actual rows
			$rows = $this->$relationship()->seedWithRelation($rows, $relationship, $constraint, $subs);

			// Reset some vars
			$subs       = null;
			$constraint = null;
		}

		return $rows;
	}
private function parseIncluding ( $ rows ) { $ subs = null ; $ constraint = null ; foreach ( $ this -> includes as $ relationship ) { // Check for array, meaning we have relationship_name => constraint if ( is_array ( $ relationship ) ) { list ( $ relationship , $ constraint ) = $ relationship ; } // Parse for nested relationships if ( strpos ( $ relationship , '.' ) ) { list ( $ relationship , $ subs ) = explode ( '.' , $ relationship , 2 ) ; } // If we have subs and a constraint, the constraint should apply to the subs, not the intermediate relation if ( isset ( $ subs ) && isset ( $ constraint ) ) { $ subs = [ $ subs , $ constraint ] ; $ constraint = null ; } // Get the actual rows $ rows = $ this -> $ relationship ( ) -> seedWithRelation ( $ rows , $ relationship , $ constraint , $ subs ) ; // Reset some vars $ subs = null ; $ constraint = null ; } return $ rows ; }
Retrieves an associated model in conjunction with the current one

@param   \Hubzero\Database\Rows  $rows  The rows to parse and augment
@return  \Hubzero\Database\Rows
@since   2.0.0
Retrieves an associated model in conjunction with the current one