public function seedWithRelation($rows, $name, $constraint = null, $subs = null)
	{
		if (!$keys = $rows->fieldsByKey($this->localKey))
		{
			return $rows;
		}

		$relations = $this->getRelations($keys, $constraint);

		if (isset($subs))
		{
			$relations->including($subs);
		}

		$resultsByRelatedKey = $this->getResultsByRelatedKey($relations);

		return $this->seed($rows, $resultsByRelatedKey, $name);
	}
public function seedWithRelation($rows, $name, $constraint = null, $subs = null)
	{
		if (!$keys = $rows->fieldsByKey($this->localKey))
		{
			return $rows;
		}

		$relations = $this->getRelations($keys, $constraint);

		if (isset($subs))
		{
			$relations->including($subs);
		}

		$resultsByRelatedKey = $this->getResultsByRelatedKey($relations);

		return $this->seed($rows, $resultsByRelatedKey, $name);
	}
public function seedWithRelation ( $ rows , $ name , $ constraint = null , $ subs = null ) { if ( ! $ keys = $ rows -> fieldsByKey ( $ this -> localKey ) ) { return $ rows ; } $ relations = $ this -> getRelations ( $ keys , $ constraint ) ; if ( isset ( $ subs ) ) { $ relations -> including ( $ subs ) ; } $ resultsByRelatedKey = $ this -> getResultsByRelatedKey ( $ relations ) ; return $ this -> seed ( $ rows , $ resultsByRelatedKey , $ name ) ; }
Loads the relationship content, and sets it on the related model

This is used when pre-loading relationship content
via ({@link \Hubzero\Database\Relational::including()})

@param   array    $rows        The rows that we'll be seeding
@param   string   $name        The relationship name that we'll use to attach to the rows
@param   closure  $constraint  The constraint function to limit related items
@param   string   $subs        The nested relationships that should be passed on to the child
@return  object
@since   2.0.0
Loads the relationship content and sets it on the related model