PHP 클래스 LMongo\Eloquent\Relations\HasOne

상속: extends HasOneOrMany
파일 보기 프로젝트 열기: navruzm/lmongo 1 사용 예제들

공개 메소드들

메소드 설명
getResults ( ) : mixed Get the results of the relationship.
initRelation ( array $models, string $relation ) : void Initialize the relation on a set of models.
match ( array $models, Collection $results, string $relation ) : array Match the eagerly loaded results to their parents.

메소드 상세

getResults() 공개 메소드

Get the results of the relationship.
public getResults ( ) : mixed
리턴 mixed

initRelation() 공개 메소드

Initialize the relation on a set of models.
public initRelation ( array $models, string $relation ) : void
$models array
$relation string
리턴 void

match() 공개 메소드

Match the eagerly loaded results to their parents.
public match ( array $models, Collection $results, string $relation ) : array
$models array
$results LMongo\Eloquent\Collection
$relation string
리턴 array