Свойство | Type | Description | |
---|---|---|---|
$em | |||
$entityDefs | array |
||
$entityNamespace | string | ||
$persist | boolean | ||
$singletons | array |
Méthode | Description | |
---|---|---|
__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. |
Méthode | Description | |
---|---|---|
addNamespace ( string $name ) : string | ||
checkFieldOverrides ( |
||
createCollectionFrom ( $array = [] ) | ||
setField ( $ent, |
||
updateCollectionSideOfAssocation ( $entityBeingCreated, $metadata, $fieldName, $value ) |
public __construct ( |
||
$em |
protected addNamespace ( string $name ) : string | ||
$name | string | |
Résultat | string |
protected checkFieldOverrides ( |
||
$def | ||
$fieldOverrides | array |
public defineEntity ( $name, array $fieldDefs = [], array $config = [] ) : |
||
$fieldDefs | array | |
$config | array | |
Résultat |
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 ) |
protected EntityManager,Doctrine\ORM $em | ||
Résultat |