ZF\Apigility\DbConnectedResource::update PHP Метод

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

Replace an existing resource.
public update ( integer | string $id, array | object $data ) : array | object
$id integer | string Identifier of resource.
$data array | object Data with which to replace the resource.
Результат array | object Updated resource.
    public function update($id, $data)
    {
        $data = $this->retrieveData($data);
        $this->table->update($data, [$this->identifierName => $id]);
        return $this->fetch($id);
    }