Свойство | Type | Description | |
---|---|---|---|
$cache | Bravo3\Orm\Services\Cache\EntityCachingInterface | ||
$config | |||
$dispatcher | |||
$driver | Bravo3\Orm\Drivers\DriverInterface | ||
$index_manager | |||
$key_scheme | Bravo3\Orm\KeySchemes\KeySchemeInterface | ||
$maintenance_mode | boolean | ||
$mapper | Bravo3\Orm\Mappers\MapperInterface | ||
$query_manager | |||
$relationship_manager | |||
$serialiser_map |
Méthode | Description | |
---|---|---|
addListener ( string $event_name, callable $listener, integer $priority ) | Add an event listener | |
addSubscriber ( Symfony\Component\EventDispatcher\EventSubscriberInterface $subscriber ) | Add an event subscriber | |
build ( Bravo3\Orm\Drivers\DriverInterface $driver, Bravo3\Orm\Mappers\MapperInterface $mapper, |
Create a new entity manager | |
delete ( object $entity ) | Delete an entity | |
flush ( ) | Execute the current unit of work | |
getCache ( ) : Bravo3\Orm\Services\Cache\EntityCachingInterface | Get caching service | |
getConfig ( ) : |
Get Config | |
getDispatcher ( ) : |
Get the event dispatcher, lazy-loading | |
getDriver ( ) : Bravo3\Orm\Drivers\DriverInterface | Get the underlying driver | |
getKeyScheme ( ) : Bravo3\Orm\KeySchemes\KeySchemeInterface | Get the key scheme | |
getMaintenanceMode ( ) : boolean | Get the state of the maintenance mode | |
getMapper ( ) : Bravo3\Orm\Mappers\MapperInterface | Get the entity mapper | |
getSerialiserMap ( ) : |
Get the serialiser mappings | |
indexedQuery ( |
Create a query against a table matching one or more indices | |
persist ( object $entity, integer $ttl = null ) | Persist an entity | |
purge ( ) | Purge the current unit of work, clearing any unexecuted commands | |
refresh ( object &$entity ) : object | Will force a database update of an entity | |
retrieve ( string $class_name, string $id, boolean $use_cache = true ) : object | Retrieve an entity, throwing a NotFoundException if the entity is not found | |
retrieveByIndex ( string $class_name, string $index_name, string $index_key, boolean $use_cache = true ) : object | Retrieve an entity by an index | |
retrieveEntityOrNew ( string $class_name, integer $id, boolean $use_cache = true ) : object | Retrieve an entity, creating a new instance if the entity is not found | |
retrieveEntityOrNull ( string $class_name, integer $id, boolean $use_cache = true ) : null | object | Retrieve an entity, returning null if the entity is not found | |
setCache ( Bravo3\Orm\Services\Cache\EntityCachingInterface $cache ) | Set caching service | |
setConfig ( |
Set Config | |
setMaintenanceMode ( boolean $enabled = true ) | Enable or disable maintenance mode | |
setSerialiserMap ( |
Set the serialiser map | |
sortedQuery ( |
Get all foreign entities ordered by a sort column |
Méthode | Description | |
---|---|---|
__construct ( Bravo3\Orm\Drivers\DriverInterface $driver, Bravo3\Orm\Mappers\MapperInterface $mapper, |
Create a raw entity manager | |
getIndexManager ( ) : |
Lazy-loading index manager | |
getQueryManager ( ) : |
Lazy-loading query manager | |
getRelationshipManager ( ) : |
Lazy-loading relationship manager | |
registerDefaultSubscribers ( ) | Register default event subscribers |
Méthode | Description | |
---|---|---|
validateId ( string $id ) | Throw an InvalidIdException if an ID contains illegal chars |
protected __construct ( Bravo3\Orm\Drivers\DriverInterface $driver, Bravo3\Orm\Mappers\MapperInterface $mapper, |
||
$driver | Bravo3\Orm\Drivers\DriverInterface | |
$mapper | Bravo3\Orm\Mappers\MapperInterface | |
$serialiser_map | ||
$key_scheme | Bravo3\Orm\KeySchemes\KeySchemeInterface | |
$configuration | ||
$cache | Bravo3\Orm\Services\Cache\EntityCachingInterface |
public addSubscriber ( Symfony\Component\EventDispatcher\EventSubscriberInterface $subscriber ) | ||
$subscriber | Symfony\Component\EventDispatcher\EventSubscriberInterface |
public static build ( Bravo3\Orm\Drivers\DriverInterface $driver, Bravo3\Orm\Mappers\MapperInterface $mapper, |
||
$driver | Bravo3\Orm\Drivers\DriverInterface | |
$mapper | Bravo3\Orm\Mappers\MapperInterface | |
$serialiser_map | ||
$key_scheme | Bravo3\Orm\KeySchemes\KeySchemeInterface | |
$configuration | ||
$cache | Bravo3\Orm\Services\Cache\EntityCachingInterface | |
Résultat |
public getCache ( ) : Bravo3\Orm\Services\Cache\EntityCachingInterface | ||
Résultat | Bravo3\Orm\Services\Cache\EntityCachingInterface |
public getConfig ( ) : |
||
Résultat |
public getDispatcher ( ) : |
||
Résultat |
public getDriver ( ) : Bravo3\Orm\Drivers\DriverInterface | ||
Résultat | Bravo3\Orm\Drivers\DriverInterface |
protected getIndexManager ( ) : |
||
Résultat |
public getKeyScheme ( ) : Bravo3\Orm\KeySchemes\KeySchemeInterface | ||
Résultat | Bravo3\Orm\KeySchemes\KeySchemeInterface |
public getMaintenanceMode ( ) : boolean | ||
Résultat | boolean |
public getMapper ( ) : Bravo3\Orm\Mappers\MapperInterface | ||
Résultat | Bravo3\Orm\Mappers\MapperInterface |
protected getQueryManager ( ) : |
||
Résultat |
protected getRelationshipManager ( ) : |
||
Résultat |
public getSerialiserMap ( ) : |
||
Résultat |
public indexedQuery ( |
||
$query | ||
$use_cache | boolean | |
Résultat |
public purge ( ) |
protected registerDefaultSubscribers ( ) |
public setCache ( Bravo3\Orm\Services\Cache\EntityCachingInterface $cache ) | ||
$cache | Bravo3\Orm\Services\Cache\EntityCachingInterface |
public setConfig ( |
||
$config |
public setMaintenanceMode ( boolean $enabled = true ) | ||
$enabled | boolean |
public setSerialiserMap ( |
||
$serialiser_map |
public sortedQuery ( |
||
$query | ||
$check_full_set_size | boolean | |
$use_cache | boolean | |
Résultat |
protected EntityCachingInterface,Bravo3\Orm\Services\Cache $cache | ||
Résultat | Bravo3\Orm\Services\Cache\EntityCachingInterface |
protected Configuration,Bravo3\Orm\Config $config | ||
Résultat |
protected EventDispatcher,Symfony\Component\EventDispatcher $dispatcher | ||
Résultat |
protected DriverInterface,Bravo3\Orm\Drivers $driver | ||
Résultat | Bravo3\Orm\Drivers\DriverInterface |
protected IndexManager,Bravo3\Orm\Services $index_manager | ||
Résultat |
protected KeySchemeInterface,Bravo3\Orm\KeySchemes $key_scheme | ||
Résultat | Bravo3\Orm\KeySchemes\KeySchemeInterface |
protected MapperInterface,Bravo3\Orm\Mappers $mapper | ||
Résultat | Bravo3\Orm\Mappers\MapperInterface |
protected QueryManager,Bravo3\Orm\Services $query_manager | ||
Résultat |
protected RelationshipManager,Bravo3\Orm\Services $relationship_manager | ||
Résultat |