PHP 클래스 Blast\Orm\Relations\HasMany

상속: implements Blast\Orm\ConnectionAwareInterface, implements Blast\Orm\Entity\ProviderFactoryInterface, implements Blast\Orm\Relations\RelationInterface, use trait Blast\Orm\ConnectionAwareTrait, use trait Blast\Orm\Entity\EntityAwareTrait, use trait Blast\Orm\Entity\ProviderFactoryTrait, use trait RelationTrait
파일 보기 프로젝트 열기: phpthinktank/blast-orm 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( $entity, $foreignEntity, null $foreignKey = null ) Local entity relates to many entries of foreign entity by foreign key
execute ( ) : ArrayObject
getForeignEntity ( ) : mixed
getForeignKey ( ) : null
getQuery ( ) : Query Get relation query

메소드 상세

__construct() 공개 메소드

Local entity relates to many entries of foreign entity by foreign key
public __construct ( $entity, $foreignEntity, null $foreignKey = null )
$entity
$foreignEntity
$foreignKey null

execute() 공개 메소드

public execute ( ) : ArrayObject
리턴 ArrayObject

getForeignEntity() 공개 메소드

public getForeignEntity ( ) : mixed
리턴 mixed

getForeignKey() 공개 메소드

public getForeignKey ( ) : null
리턴 null

getQuery() 공개 메소드

Get relation query
public getQuery ( ) : Query
리턴 Blast\Orm\Query