PHP Class Bravo3\Orm\Services\AbstractManagerUtility

Afficher le fichier Open project: bravo3/orm

Protected Properties

Свойство Type Description
$entity_manager EntityManager

Méthodes publiques

Méthode Description
__construct ( EntityManager $entity_manager )

Méthodes protégées

Méthode Description
buildPrerequisites ( object $entity, Entity $metadata = null, Reader $reader = null, string $local_id = null ) : array Build requisite services & data if they were not provided
getDriver ( ) : Bravo3\Orm\Drivers\DriverInterface Get the driver belonging to the entity manager
getEntityId ( object $entity ) : string Get the full ID of an entity
getKeyScheme ( ) : Bravo3\Orm\KeySchemes\KeySchemeInterface Get the key scheme belonging to the entity manager
getMapper ( ) : Bravo3\Orm\Mappers\MapperInterface Get the mapper belonging to the entity manager
getRelationshipKey ( Relationship $relationship, string $source_id ) : string Get a relationship key, resolving table names accordingly
getSortIndexKey ( Relationship $relationship, $sort_name, $source_id ) : string Get a sort index key, resolving table names accordingly
getSourceTable ( Relationship $relationship ) : string Get the relationship source table name
getTableForClass ( string $class ) : string Get the table name for a given entity class
getTargetTable ( Relationship $relationship ) : string Get the relationship target table name

Method Details

__construct() public méthode

public __construct ( EntityManager $entity_manager )
$entity_manager EntityManager

buildPrerequisites() protected méthode

Build requisite services & data if they were not provided
protected buildPrerequisites ( object $entity, Entity $metadata = null, Reader $reader = null, string $local_id = null ) : array
$entity object
$metadata Bravo3\Orm\Mappers\Metadata\Entity
$reader Bravo3\Orm\Services\Io\Reader
$local_id string
Résultat array

getDriver() protected méthode

Get the driver belonging to the entity manager
protected getDriver ( ) : Bravo3\Orm\Drivers\DriverInterface
Résultat Bravo3\Orm\Drivers\DriverInterface

getEntityId() protected méthode

Get the full ID of an entity
protected getEntityId ( object $entity ) : string
$entity object
Résultat string

getKeyScheme() protected méthode

Get the key scheme belonging to the entity manager
protected getKeyScheme ( ) : Bravo3\Orm\KeySchemes\KeySchemeInterface
Résultat Bravo3\Orm\KeySchemes\KeySchemeInterface

getMapper() protected méthode

Get the mapper belonging to the entity manager
protected getMapper ( ) : Bravo3\Orm\Mappers\MapperInterface
Résultat Bravo3\Orm\Mappers\MapperInterface

getRelationshipKey() protected méthode

Get a relationship key, resolving table names accordingly
protected getRelationshipKey ( Relationship $relationship, string $source_id ) : string
$relationship Bravo3\Orm\Mappers\Metadata\Relationship
$source_id string
Résultat string

getSortIndexKey() protected méthode

Get a sort index key, resolving table names accordingly
protected getSortIndexKey ( Relationship $relationship, $sort_name, $source_id ) : string
$relationship Bravo3\Orm\Mappers\Metadata\Relationship
$sort_name
$source_id
Résultat string

getSourceTable() protected méthode

Get the relationship source table name
protected getSourceTable ( Relationship $relationship ) : string
$relationship Bravo3\Orm\Mappers\Metadata\Relationship
Résultat string

getTableForClass() protected méthode

Get the table name for a given entity class
protected getTableForClass ( string $class ) : string
$class string
Résultat string

getTargetTable() protected méthode

Get the relationship target table name
protected getTargetTable ( Relationship $relationship ) : string
$relationship Bravo3\Orm\Mappers\Metadata\Relationship
Résultat string

Property Details

$entity_manager protected_oe property

protected EntityManager,Bravo3\Orm\Services $entity_manager
Résultat EntityManager