PHP Интерфейс Blast\Orm\MapperInterface

Показать файл Открыть проект

Открытые методы

Метод Описание
create ( array | ArrayObject | stdClass | object $entity ) : Query Create query for new entity.
delete ( array | integer | string $identifiers ) : query Prepare delete query for attached entity by identifiers
find ( mixed $primaryKey ) : Query Select query for finding entity by primary key
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

Описание методов

create() публичный Метод

Create query for new entity.
public create ( array | ArrayObject | stdClass | object $entity ) : Query
$entity array | ArrayObject | stdClass | object
Результат Query

delete() публичный Метод

Prepare delete query for attached entity by identifiers
public delete ( array | integer | string $identifiers ) : query
$identifiers array | integer | string
Результат query

find() публичный Метод

Select query for finding entity by primary key
public find ( mixed $primaryKey ) : Query
$primaryKey mixed
Результат Query

select() публичный Метод

Select query for entity
public select ( array $selects = ['*'] ) : Query
$selects array
Результат Query

update() публичный Метод

Update query for existing Model or a collection of entities in storage
public update ( array | ArrayObject | stdClass | object $entity ) : Query
$entity array | ArrayObject | stdClass | object
Результат Query