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

Executes an UPDATE statement on the specified table.
public update ( string $table, array $data, array $conditions = [], array $types = [] ) : Cake\Database\StatementInterface
$table string the table to update rows from
$data array values to be updated
$conditions array conditions to be set for update statement
$types array list of associative array containing the types to be used for casting
Результат Cake\Database\StatementInterface
Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function updatePermission(PermissionInterface $permission)
 {
     $this->connection->update($this->getAclSchema()->getPermissionsTableName(), ['mask' => $permission->getMask()], ['requester' => $permission->getRequester()->getAclRequesterIdentifier(), 'resource' => $permission->getResource()->getAclResourceIdentifier()], ['mask' => 'integer', 'requester' => 'string', 'resource' => 'string']);
 }