src/Utility/Search.php
public function update(array $searchData, string $id)
    {
        /**
         * @var \Search\Model\Entity\SavedSearch
         */
        $entity = $this->searchTable->get($id);
        $entity = $this->normalize($entity, $entity->get('content'), $searchData);

        return $this->searchTable->save($entity);
    }
public function update(array $searchData, string $id)
    {
        /**
         * @var \Search\Model\Entity\SavedSearch
         */
        $entity = $this->searchTable->get($id);
        $entity = $this->normalize($entity, $entity->get('content'), $searchData);

        return $this->searchTable->save($entity);
    }
public function update ( array $ searchData , string $ id ) { /**
         * @var \Search\Model\Entity\SavedSearch
         */ $ entity = $ this -> searchTable -> get ( $ id ) ; $ entity = $ this -> normalize ( $ entity , $ entity -> get ( 'content' ) , $ searchData ) ; return $ this -> searchTable -> save ( $ entity ) ; }
Update search.

@param mixed[] $searchData Request data
@param string $id Existing search id
@return \Cake\Datasource\EntityInterface|false
Update search .