Method | Description | |
---|---|---|
__call ( string | callable $name, array $arguments = [] ) : mixed | Magic call of \Doctrine\DBAL\Query\QueryBuilder methods | |
__construct ( Doctrine\DBAL\Connection $connection = null, array | stdClas\stdClass | ArrayObject | object | string $entity = null ) | Statement constructor. | |
addColumnValue ( $column, $value ) | Add a value for column on update or insert statement | |
execute ( string $option = HydratorInterface::HYDRATE_AUTO ) : array | SplStack | ArrayObject | boolean | Fetch data for entity | |
getBuilder ( ) : Doctrine\DBAL\Query\QueryBuilder | ||
getTypeName ( ) : string | Get query type name | |
select ( array $select = [] ) | Specifies an item that is to be returned in the query result. | |
setBuilder ( Doctrine\DBAL\Query\QueryBuilder $builder ) |
Method | Description | |
---|---|---|
afterExecute ( mixed $result, mixed $entity, |
Emit events after query handling and if entity is able to emit events execute entity events | |
beforeExecute ( $entity ) : |
Emit events before query handling and if entity is able to emit events execute entity events | |
convertTypesToPHPValues ( Blast\Orm\Entity\ProviderInterface $provider, $result ) : mixed |
public addColumnValue ( $column, $value ) | ||
$column | ||
$value |
public getBuilder ( ) : Doctrine\DBAL\Query\QueryBuilder | ||
return | Doctrine\DBAL\Query\QueryBuilder |
$qb = $conn->createQueryBuilder()
->select('u.id', 'p.id')
->from('users', 'u')
->leftJoin('u', 'phonenumbers', 'p', 'u.id = p.user_id');
public setBuilder ( Doctrine\DBAL\Query\QueryBuilder $builder ) | ||
$builder | Doctrine\DBAL\Query\QueryBuilder |