PHP 클래스 Blast\Orm\Relations\ManyToMany

상속: 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

공개 메소드들

메소드 설명
__construct ( string | object $entity, string | object $foreignEntity, null | string $foreignKey = null, null | string $localKey = null, null | string | object $junction = null, null | string $junctionLocalKey = null, null | string $junctionForeignKey = null ) Many occurrences in local entity relate to many occurrences in foreign entity and vice versa.
execute ( ) : SplStack
getForeignEntity ( ) : object | string
getForeignKey ( ) : null | string
getJunction ( ) : null | object | string
getJunctionForeignKey ( ) : null | string
getJunctionLocalKey ( ) : null | string
getLocalKey ( ) : null | string
getQuery ( ) : Query Get relation query

메소드 상세

__construct() 공개 메소드

The relations are linked by a junction table.
public __construct ( string | object $entity, string | object $foreignEntity, null | string $foreignKey = null, null | string $localKey = null, null | string | object $junction = null, null | string $junctionLocalKey = null, null | string $junctionForeignKey = null )
$entity string | object
$foreignEntity string | object
$foreignKey null | string Default field name is {foreign primary key name}
$localKey null | string Default field name is {local primary key name}
$junction null | string | object Default table name is {local entity table name}_{foreign entity table name}
$junctionLocalKey null | string Default field name is {local table name}_{$localKey}
$junctionForeignKey null | string Default field name is {foreign table name}_{$foreignKey}

execute() 공개 메소드

public execute ( ) : SplStack
리턴 SplStack

getForeignEntity() 공개 메소드

public getForeignEntity ( ) : object | string
리턴 object | string

getForeignKey() 공개 메소드

public getForeignKey ( ) : null | string
리턴 null | string

getJunction() 공개 메소드

public getJunction ( ) : null | object | string
리턴 null | object | string

getJunctionForeignKey() 공개 메소드

public getJunctionForeignKey ( ) : null | string
리턴 null | string

getJunctionLocalKey() 공개 메소드

public getJunctionLocalKey ( ) : null | string
리턴 null | string

getLocalKey() 공개 메소드

public getLocalKey ( ) : null | string
리턴 null | string

getQuery() 공개 메소드

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