Свойство | Тип | Описание | |
---|---|---|---|
$aliases | array | ||
$builder | |||
$collectionManager | Bolt\Storage\Collection\CollectionManager | ||
$conn | Doctrine\DBAL\Connection | ||
$defaultRepositoryFactory | Callable | ||
$eventManager | Symfony\Component\EventDispatcher\EventDispatcherInterface | ||
$fieldManager | |||
$legacyService | Bolt\Storage\ContentLegacyService | ||
$legacyStorage | |||
$logger | Psr\Log\LoggerInterface | ||
$mapping | |||
$repositories | array |
Метод | Описание | |
---|---|---|
__call ( string $method, string $args ) : mixed | Magic call method acts as a catchall proxy to the legacy repository | |
__construct ( Doctrine\DBAL\Connection $conn, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventManager, |
Creates a new EntityManager that operates on the given database connection and uses the given EventManager. | |
addEntityAlias ( string $alias, string $namespace ) | Registers shorter alias access for Entities. | |
create ( string $className, array $data, Doctrine\Common\Persistence\Mapping\ClassMetadata $metadata = null ) : Bolt\Storage\Entity\Entity | Creates an entity of the given class, with the data supplied. | |
createCollection ( $className ) : mixed | Shorthand access method to create collection. Consults aliases to allow short names. | |
createExpressionBuilder ( ) : Doctrine\DBAL\Query\Expression\ExpressionBuilder | ||
createQueryBuilder ( ) : Doctrine\DBAL\Query\QueryBuilder | ||
delete ( object $object ) : boolean | Removes an object instance. | |
find ( string $className, mixed $id ) : object | Finds an object by its identifier. | |
getCollectionManager ( ) : Bolt\Storage\Collection\CollectionManager | ||
getConnection ( ) : Doctrine\DBAL\Connection | Gets the DBAL Driver Connection. | |
getContent ( string $textquery, array $parameters = [], array &$pager = [], array $whereparameters = [] ) : |
Note that this method is explicitly defined here because the magic method above cannot pass dynamic variables by reference | |
getDefaultRepositoryFactory ( Doctrine\Common\Persistence\Mapping\ClassMetadata $classMetadata ) : callable | Returns the default repository factory set on this object | |
getEntityBuilder ( string $className = null, Bolt\Storage\Mapping\ClassMetadata $classMetadata = null ) : |
Get an entity builder instance for a given class. | |
getEventManager ( ) : Symfony\Component\EventDispatcher\EventDispatcherInterface | Gets the Event Manager. | |
getFieldManager ( ) : |
||
getLogger ( ) : Psr\Log\LoggerInterface | Getter for logger object | |
getMapper ( ) : |
Gets the Class Metadata Driver. | |
getRepository ( $className ) | ||
legacy ( ) : |
Returns a proxy to the legacy storage service | |
save ( object $object ) : boolean | The object will be entered into the database as a result of this operation. | |
setCollectionManager ( Bolt\Storage\Collection\CollectionManager $collectionManager ) | ||
setDefaultRepositoryFactory ( callable $factory ) | Sets a default repository factory that can handle metadata that is not mapped to a specific entity. | |
setEntityBuilder ( |
Set an entity builder instance. | |
setFieldManager ( |
||
setLegacyService ( Bolt\Storage\ContentLegacyService $service ) | Sets the LegacyRepository | |
setLegacyStorage ( |
Sets the LegacyRepository | |
setRepository ( string $entityName, string $repositoryClass ) | Sets a custom repository class for an entity. |
public __construct ( Doctrine\DBAL\Connection $conn, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventManager, |
||
$conn | Doctrine\DBAL\Connection | |
$eventManager | Symfony\Component\EventDispatcher\EventDispatcherInterface | |
$mapping | ||
$logger | Psr\Log\LoggerInterface |
public addEntityAlias ( string $alias, string $namespace ) | ||
$alias | string | |
$namespace | string |
public create ( string $className, array $data, Doctrine\Common\Persistence\Mapping\ClassMetadata $metadata = null ) : Bolt\Storage\Entity\Entity | ||
$className | string | The type of entity to create |
$data | array | The data to use to hydrate the new entity |
$metadata | Doctrine\Common\Persistence\Mapping\ClassMetadata | |
Результат | Bolt\Storage\Entity\Entity |
public createCollection ( $className ) : mixed | ||
$className | ||
Результат | mixed |
public createExpressionBuilder ( ) : Doctrine\DBAL\Query\Expression\ExpressionBuilder | ||
Результат | Doctrine\DBAL\Query\Expression\ExpressionBuilder |
public createQueryBuilder ( ) : Doctrine\DBAL\Query\QueryBuilder | ||
Результат | Doctrine\DBAL\Query\QueryBuilder |
public getCollectionManager ( ) : Bolt\Storage\Collection\CollectionManager | ||
Результат | Bolt\Storage\Collection\CollectionManager |
public getConnection ( ) : Doctrine\DBAL\Connection | ||
Результат | Doctrine\DBAL\Connection |
public getDefaultRepositoryFactory ( Doctrine\Common\Persistence\Mapping\ClassMetadata $classMetadata ) : callable | ||
$classMetadata | Doctrine\Common\Persistence\Mapping\ClassMetadata | |
Результат | callable | $factory |
public getEntityBuilder ( string $className = null, Bolt\Storage\Mapping\ClassMetadata $classMetadata = null ) : |
||
$className | string | |
$classMetadata | Bolt\Storage\Mapping\ClassMetadata | |
Результат |
public getEventManager ( ) : Symfony\Component\EventDispatcher\EventDispatcherInterface | ||
Результат | Symfony\Component\EventDispatcher\EventDispatcherInterface |
public getLogger ( ) : Psr\Log\LoggerInterface | ||
Результат | Psr\Log\LoggerInterface |
public getMapper ( ) : |
||
Результат |
public legacy ( ) : |
||
Результат |
public setCollectionManager ( Bolt\Storage\Collection\CollectionManager $collectionManager ) | ||
$collectionManager | Bolt\Storage\Collection\CollectionManager |
public setDefaultRepositoryFactory ( callable $factory ) | ||
$factory | callable |
public setEntityBuilder ( |
||
$builder | ||
Результат |
public setFieldManager ( |
||
$fieldManager |
public setLegacyService ( Bolt\Storage\ContentLegacyService $service ) | ||
$service | Bolt\Storage\ContentLegacyService |
public setLegacyStorage ( |
||
$storage |
public setRepository ( string $entityName, string $repositoryClass ) | ||
$entityName | string | |
$repositoryClass | string |
protected Builder,Bolt\Storage\Entity $builder | ||
Результат |
protected CollectionManager,Bolt\Storage\Collection $collectionManager | ||
Результат | Bolt\Storage\Collection\CollectionManager |
protected Connection,Doctrine\DBAL $conn | ||
Результат | Doctrine\DBAL\Connection |
protected Callable $defaultRepositoryFactory | ||
Результат | Callable |
protected EventDispatcherInterface,Symfony\Component\EventDispatcher $eventManager | ||
Результат | Symfony\Component\EventDispatcher\EventDispatcherInterface |
protected FieldManager,Bolt\Storage $fieldManager | ||
Результат |
protected ContentLegacyService,Bolt\Storage $legacyService | ||
Результат | Bolt\Storage\ContentLegacyService |
protected Storage,Bolt\Legacy $legacyStorage | ||
Результат |
protected LoggerInterface,Psr\Log $logger | ||
Результат | Psr\Log\LoggerInterface |
protected MetadataDriver,Bolt\Storage\Mapping $mapping | ||
Результат |