just another orm...
View the Project on GitHub tflori/orm
» API Reference » ORM\EntityFetcher\ExecutesQueries
public function insert(array $rows): int
Returns | int | The number of inserted rows |
Parameter | Type | Description |
---|---|---|
$rows |
array |
ORM\EntityFetcher\ExecutesQueries::insert
public function update(array $updates): int
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 |
Parameter | Type | Description |
---|---|---|
$updates |
array | An array of columns to update |
ORM\EntityFetcher\ExecutesQueries::update