프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 CollectionManager,Bolt\Storage\Collection $collectionManager | ||
리턴 | Bolt\Storage\Collection\CollectionManager |
protected EventDispatcherInterface,Symfony\Component\EventDispatcher $eventManager | ||
리턴 | Symfony\Component\EventDispatcher\EventDispatcherInterface |
protected ContentLegacyService,Bolt\Storage $legacyService | ||
리턴 | Bolt\Storage\ContentLegacyService |
protected MetadataDriver,Bolt\Storage\Mapping $mapping | ||
리턴 |