PHP 클래스 Blast\Orm\Query

상속: implements Blast\Orm\ConnectionAwareInterface, implements League\Event\EmitterAwareInterface, implements Blast\Orm\Entity\EntityAwareInterface, implements Blast\Orm\Entity\ProviderFactoryInterface, implements Blast\Orm\QueryInterface, use trait ConnectionAwareTrait, use trait League\Event\EmitterAwareTrait, use trait Blast\Orm\Entity\EntityAwareTrait, use trait Blast\Orm\Entity\ProviderFactoryTrait
파일 보기 프로젝트 열기: phpthinktank/blast-orm 1 사용 예제들

공개 메소드들

메소드 설명
__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 )

비공개 메소드들

메소드 설명
afterExecute ( mixed $result, mixed $entity, Query $builder ) : QueryResultEvent Emit events after query handling and if entity is able to emit events execute entity events
beforeExecute ( $entity ) : QueryBuilderEvent Emit events before query handling and if entity is able to emit events execute entity events
convertTypesToPHPValues ( Blast\Orm\Entity\ProviderInterface $provider, $result ) : mixed

메소드 상세

__call() 공개 메소드

Magic call of \Doctrine\DBAL\Query\QueryBuilder methods
public __call ( string | callable $name, array $arguments = [] ) : mixed
$name string | callable
$arguments array
리턴 mixed

__construct() 공개 메소드

Statement constructor.
public __construct ( Doctrine\DBAL\Connection $connection = null, array | stdClas\stdClass | ArrayObject | object | string $entity = null )
$connection Doctrine\DBAL\Connection
$entity array | stdClas\stdClass | ArrayObject | object | string

addColumnValue() 공개 메소드

Add a value for column on update or insert statement
public addColumnValue ( $column, $value )
$column
$value

execute() 공개 메소드

Fetch data for entity
public execute ( string $option = HydratorInterface::HYDRATE_AUTO ) : array | SplStack | ArrayObject | boolean
$option string
리턴 array | SplStack | ArrayObject | boolean

getBuilder() 공개 메소드

public getBuilder ( ) : Doctrine\DBAL\Query\QueryBuilder
리턴 Doctrine\DBAL\Query\QueryBuilder

getTypeName() 공개 메소드

Get query type name
public getTypeName ( ) : string
리턴 string

select() 공개 메소드

Replaces any previously specified selections, if any. $qb = $conn->createQueryBuilder() ->select('u.id', 'p.id') ->from('users', 'u') ->leftJoin('u', 'phonenumbers', 'p', 'u.id = p.user_id');
public select ( array $select = [] )
$select array The selection expressions.

setBuilder() 공개 메소드

public setBuilder ( Doctrine\DBAL\Query\QueryBuilder $builder )
$builder Doctrine\DBAL\Query\QueryBuilder