PHP 클래스 Spot\Relation\HasManyThrough

상속: extends RelationAbstract, implements Countable, implements IteratorAggregate, implements ArrayAccess
파일 보기 프로젝트 열기: vlucas/spot2

보호된 프로퍼티들

프로퍼티 타입 설명
$throughCollection

공개 메소드들

메소드 설명
__construct ( Mapper $mapper, $entityName, $throughEntityName, $foreignKey, $localKey, $identityValue ) Constructor function
count ( ) : integer SPL Countable function Called automatically when attribute is used in a 'count()' function call
eagerLoadOnCollection ( $relationName, Collection $collection ) : Spot\Collection Map relation results to original collection of entities
getIterator ( ) : Collection SPL IteratorAggregate function Called automatically when attribute is used in a 'foreach' loop
identityValuesFromCollection ( Collection $collection ) Set identity values from given collection
offsetExists ( $key ) ----------------------------------------------
offsetGet ( $key )
offsetSet ( $key, $value )
offsetUnset ( $key )
save ( Spot\EntityInterface $entity, string $relationName, array $options = [] ) : boolean Save related entities
throughEntityName ( ) Get through entity name

보호된 메소드들

메소드 설명
buildQuery ( ) : Query Build query object

메소드 상세

__construct() 공개 메소드

Constructor function
public __construct ( Mapper $mapper, $entityName, $throughEntityName, $foreignKey, $localKey, $identityValue )
$mapper Spot\Mapper

buildQuery() 보호된 메소드

Build query object
protected buildQuery ( ) : Query
리턴 Spot\Query

count() 공개 메소드

SPL Countable function Called automatically when attribute is used in a 'count()' function call
public count ( ) : integer
리턴 integer

eagerLoadOnCollection() 공개 메소드

Map relation results to original collection of entities
public eagerLoadOnCollection ( $relationName, Collection $collection ) : Spot\Collection
$collection Spot\Entity\Collection
리턴 Spot\Collection

getIterator() 공개 메소드

SPL IteratorAggregate function Called automatically when attribute is used in a 'foreach' loop
public getIterator ( ) : Collection
리턴 Spot\Entity\Collection

identityValuesFromCollection() 공개 메소드

Set identity values from given collection
public identityValuesFromCollection ( Collection $collection )
$collection Spot\Entity\Collection

offsetExists() 공개 메소드

----------------------------------------------
public offsetExists ( $key )

offsetGet() 공개 메소드

public offsetGet ( $key )

offsetSet() 공개 메소드

public offsetSet ( $key, $value )

offsetUnset() 공개 메소드

public offsetUnset ( $key )

save() 공개 메소드

Save related entities
public save ( Spot\EntityInterface $entity, string $relationName, array $options = [] ) : boolean
$entity Spot\EntityInterface Entity to save relation from
$relationName string Name of the relation to save
$options array Options to pass to the mappers
리턴 boolean

throughEntityName() 공개 메소드

Get through entity name
public throughEntityName ( )

프로퍼티 상세

$throughCollection 보호되어 있는 프로퍼티

protected $throughCollection