tflori/orm

just another orm...

View the Project on GitHub tflori/orm

Build Status Test Coverage Maintainability Latest Stable Version Total Downloads

» API Reference » ORM\EntityFetcher\ExecutesQueries

ORM\EntityFetcher\ExecutesQueries

Table of Contents

Abstract

Methods

ORM\EntityFetcher\ExecutesQueries::insert

public function insert(array $rows): int
Execute an insert statement on the current table
Returns int The number of inserted rows
Parameters
Parameter Type Description
$rows array  

ORM\EntityFetcher\ExecutesQueries::insert

↑ top


ORM\EntityFetcher\ExecutesQueries::update

public function update(array $updates): int
Execute an update statement for the current query

NOTE: not all drivers support UPDATE with JOIN (or FROM). Has to be implemented in the database abstraction layer.

$updates should be an array which columns to update with what value. Use expressions to bypass escaping.

Returns int The number of affected rows
Parameters
Parameter Type Description
$updates array An array of columns to update

ORM\EntityFetcher\ExecutesQueries::update

↑ top