프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$em | |||
$entityDefs | array |
||
$entityNamespace | string | ||
$persist | boolean | ||
$singletons | array |
메소드 | 설명 | |
---|---|---|
__construct ( |
||
defineEntity ( $name, array $fieldDefs = [], array $config = [] ) : |
Defines how to create a default entity of type $name. | |
get ( $name, array $fieldOverrides = [] ) | Get an entity and its dependencies. | |
getAsSingleton ( $name, array $fieldOverrides = [] ) | A shorthand combining get() and setSingleton(). | |
getEntityNamespace ( ) | ||
getList ( $name, array $fieldOverrides = [], $numberOfInstances = 1 ) | Get an array of entities and their dependencies. | |
persistOnGet ( $enabled = true ) | Sets whether get() should automatically persist the entity it creates. | |
setEntityNamespace ( $namespace ) | Sets the namespace to be prefixed to all entity names passed to this class. | |
setSingleton ( $name, $entity ) | Sets $entity to be the singleton for $name. | |
unsetSingleton ( $name ) | Unsets the singleton for $name. |
메소드 | 설명 | |
---|---|---|
addNamespace ( string $name ) : string | ||
checkFieldOverrides ( |
||
createCollectionFrom ( $array = [] ) | ||
setField ( $ent, |
||
updateCollectionSideOfAssocation ( $entityBeingCreated, $metadata, $fieldName, $value ) |
protected checkFieldOverrides ( |
||
$def | ||
$fieldOverrides | array |
public defineEntity ( $name, array $fieldDefs = [], array $config = [] ) : |
||
$fieldDefs | array | |
$config | array | |
리턴 |
public getAsSingleton ( $name, array $fieldOverrides = [] ) | ||
$fieldOverrides | array |
public persistOnGet ( $enabled = true ) |
public setEntityNamespace ( $namespace ) |
protected setField ( $ent, |
||
$def |
public setSingleton ( $name, $entity ) |
public unsetSingleton ( $name ) |
protected updateCollectionSideOfAssocation ( $entityBeingCreated, $metadata, $fieldName, $value ) |