Cake\ElasticSearch\Type::patchEntities PHP Method

patchEntities() public method

Merging is done by matching the primary key in each of the elements in $data and $entities. This is most useful when editing a list of existing entities using request data: $article = $this->Articles->patchEntities($articles, $this->request->data());
public patchEntities ( array | Traversable $entities, array $data, array $options = [] ) : array
$entities array | Traversable the entities that will get the data merged in
$data array list of arrays to be merged into the entities
$options array A list of options for the objects hydration.
return array
    public function patchEntities($entities, array $data, array $options = [])
    {
        $marshaller = $this->marshaller();
        return $marshaller->mergeMany($entities, $data, $options);
    }