Метод |
Описание |
|
__construct ( array | ArrayObject | stdClas\stdClass | object | string $entity, Doctrine\DBAL\Driver\Connection $connection = null ) |
Disable direct access to mapper |
|
belongsTo ( $entity, $foreignEntity, null $localKey = null ) : Query |
BelongsTo is the inverse of a HasOne or a HasMany relation. |
|
create ( array | ArrayObject | stdClass | object $entity ) : Query | boolean |
Create query for new entity. |
|
createGateway ( $tableName ) : Gateway |
Create a new Query instance |
|
createQuery ( ) : Query |
Create a new Query instance |
|
delete ( integer | string $identifier ) : query |
Prepare delete query for attached entity by identifiers |
|
find ( mixed $primaryKey ) : Query |
Select query for finding entity by primary key |
|
getDefinition ( ) : Blast\Orm\Entity\DefinitionInterface |
|
|
getProvider ( ) : Blast\Orm\Entity\ProviderInterface |
|
|
hasMany ( $entity, $foreignEntity, null $foreignKey = null ) : Query |
One entity is associated with many related entities
by a field which associates with primary key in current entity. |
|
hasOne ( $entity, $foreignEntity, null | string $foreignKey = null ) : Query |
One entity is associated with one related entity by a field which
associates with primary key in current entity. |
|
manyToMany ( $entity, $foreignEntity, null $foreignKey = null, null $localKey = null, null $junction = null, null $junctionLocalKey = null, null $junctionForeignKey = null ) : Query |
Many entities of type _A_ are associated with many
related entities of type _B_ by a junction table. |
|
save ( ArrayObject | SplStack | stdClass | object $entity ) : Query |
Create or update an entity |
|
select ( array $selects = ['*'] ) : Query |
Select query for entity |
|
update ( array | ArrayObject | stdClass | object $entity ) : Query |
Update query for existing Model or a collection of entities in storage |
|