src/UthandoCommon/Service/AbstractMapperService.php
public function search(array $post)
    {
        $sort = (isset($post['sort'])) ? $post['sort'] : '';
        unset($post['sort'], $post['count'], $post['offset'], $post['page']);

        $searches = [];

        foreach ($post as $key => $value) {
            $searches[] = [
                'searchString' => $value,
                'columns' => explode('-', $key),
            ];
        }

        $models = $this->getMapper()->search($searches, $sort);

        return $models;
    }
public function search(array $post)
    {
        $sort = (isset($post['sort'])) ? $post['sort'] : '';
        unset($post['sort'], $post['count'], $post['offset'], $post['page']);

        $searches = [];

        foreach ($post as $key => $value) {
            $searches[] = [
                'searchString' => $value,
                'columns' => explode('-', $key),
            ];
        }

        $models = $this->getMapper()->search($searches, $sort);

        return $models;
    }
public function search ( array $ post ) { $ sort = ( isset ( $ post [ 'sort' ] ) ) ? $ post [ 'sort' ] : '' ; unset ( $ post [ 'sort' ] , $ post [ 'count' ] , $ post [ 'offset' ] , $ post [ 'page' ] ) ; $ searches = [ ] ; foreach ( $ post as $ key => $ value ) { $ searches [ ] = [ 'searchString' => $ value , 'columns' => explode ( '-' , $ key ) , ] ; } $ models = $ this -> getMapper ( ) -> search ( $ searches , $ sort ) ; return $ models ; }
basic search on database

@param array $post
@return ResultSet|Paginator|HydratingResultSet
basic search on database