PHP 클래스 Blast\Orm\Entity\Definition

상속: implements Blast\Orm\Entity\DefinitionInterface, implements Blast\Orm\EventEmitterFactoryInterface, implements Blast\Orm\MapperFactoryInterface, use trait League\Event\EmitterAwareTrait, use trait Blast\Orm\EventEmitterFactoryTrait, use trait Blast\Orm\MapperFactoryTrait
파일 보기 프로젝트 열기: phpthinktank/blast-orm 1 사용 예제들

공개 메소드들

메소드 설명
getConfiguration ( ) : array
getEmitter ( ) : ArrayObject | object Load event emitter. If entity has events and no emitter exists, create a new emitter.
getEntity ( ) : ArrayObject | object Get the entity object.
getEntityCollection ( ) : SplStack | object Get the custom entity collection
getFields ( ) : Doctrine\DBAL\Schema\Column[] Get fields
getIndexes ( ) : Doctrine\DBAL\Schema\Index[] Get indexes
getMapper ( ) : Blast\Orm\MapperInterface Get entity mapper
getPrimaryKeyName ( ) : string Get name of primary key
getRelations ( ) : Blast\Orm\Relations\RelationInterface[] Get an array of relations
getTableName ( boolean $withPrefix = true ) : string Get table name
setConfiguration ( array $configuration ) : Definition Add additional configuration. Configuration will be merged into

비공개 메소드들

메소드 설명
mergeConfiguration ( array $configuration ) Merge partial configuration into definition configuration. Normalize partial configuration keys before add them to configuration. Add custom configuration after adding known configuration.
processFields ( ) Setup entity fields and determine undefined fields from entity with type string

메소드 상세

getConfiguration() 공개 메소드

public getConfiguration ( ) : array
리턴 array

getEmitter() 공개 메소드

Load event emitter. If entity has events and no emitter exists, create a new emitter.
public getEmitter ( ) : ArrayObject | object
리턴 ArrayObject | object

getEntity() 공개 메소드

Get the entity object.
public getEntity ( ) : ArrayObject | object
리턴 ArrayObject | object

getEntityCollection() 공개 메소드

Get the custom entity collection
public getEntityCollection ( ) : SplStack | object
리턴 SplStack | object

getFields() 공개 메소드

Get fields
public getFields ( ) : Doctrine\DBAL\Schema\Column[]
리턴 Doctrine\DBAL\Schema\Column[]

getIndexes() 공개 메소드

Get indexes
public getIndexes ( ) : Doctrine\DBAL\Schema\Index[]
리턴 Doctrine\DBAL\Schema\Index[]

getMapper() 공개 메소드

Get entity mapper
public getMapper ( ) : Blast\Orm\MapperInterface
리턴 Blast\Orm\MapperInterface

getPrimaryKeyName() 공개 메소드

Get name of primary key
public getPrimaryKeyName ( ) : string
리턴 string

getRelations() 공개 메소드

Get an array of relations
public getRelations ( ) : Blast\Orm\Relations\RelationInterface[]
리턴 Blast\Orm\Relations\RelationInterface[]

getTableName() 공개 메소드

Add prefix if if $withPrefix is true and a prefix exists
public getTableName ( boolean $withPrefix = true ) : string
$withPrefix boolean
리턴 string

setConfiguration() 공개 메소드

Add additional configuration. Configuration will be merged into
public setConfiguration ( array $configuration ) : Definition
$configuration array
리턴 Definition