Property | 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 |
Method | 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 |
Method | 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 |
Method | 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 | |
return |
public getCache ( ) : Bravo3\Orm\Services\Cache\EntityCachingInterface | ||
return | Bravo3\Orm\Services\Cache\EntityCachingInterface |
public getConfig ( ) : |
||
return |
public getDispatcher ( ) : |
||
return |
public getDriver ( ) : Bravo3\Orm\Drivers\DriverInterface | ||
return | Bravo3\Orm\Drivers\DriverInterface |
protected getIndexManager ( ) : |
||
return |
public getKeyScheme ( ) : Bravo3\Orm\KeySchemes\KeySchemeInterface | ||
return | Bravo3\Orm\KeySchemes\KeySchemeInterface |
public getMaintenanceMode ( ) : boolean | ||
return | boolean |
public getMapper ( ) : Bravo3\Orm\Mappers\MapperInterface | ||
return | Bravo3\Orm\Mappers\MapperInterface |
protected getQueryManager ( ) : |
||
return |
protected getRelationshipManager ( ) : |
||
return |
public getSerialiserMap ( ) : |
||
return |
public indexedQuery ( |
||
$query | ||
$use_cache | boolean | |
return |
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 | |
return |
protected EntityCachingInterface,Bravo3\Orm\Services\Cache $cache | ||
return | Bravo3\Orm\Services\Cache\EntityCachingInterface |
protected Configuration,Bravo3\Orm\Config $config | ||
return |
protected EventDispatcher,Symfony\Component\EventDispatcher $dispatcher | ||
return |
protected DriverInterface,Bravo3\Orm\Drivers $driver | ||
return | Bravo3\Orm\Drivers\DriverInterface |
protected IndexManager,Bravo3\Orm\Services $index_manager | ||
return |
protected KeySchemeInterface,Bravo3\Orm\KeySchemes $key_scheme | ||
return | Bravo3\Orm\KeySchemes\KeySchemeInterface |
protected MapperInterface,Bravo3\Orm\Mappers $mapper | ||
return | Bravo3\Orm\Mappers\MapperInterface |
protected QueryManager,Bravo3\Orm\Services $query_manager | ||
return |
protected RelationshipManager,Bravo3\Orm\Services $relationship_manager | ||
return |