ModelBundle/Repository/NodeRepository.php
protected function getFilterSearch(PaginateFinderConfiguration $configuration) {
        $filter = array();
        $name = $configuration->getSearchIndex('name');
        if (null !== $name && $name !== '') {
            $filter['name'] = new MongoRegex('/.*'.$name.'.*/i');
        }

        $inMenu = $configuration->getSearchIndex('inMenu');
        if (null !== $inMenu && $inMenu !== '') {
            $filter['inMenu'] = (boolean) $inMenu;
        }

        $status = $configuration->getSearchIndex('status');
        if (null !== $status && $status !== '') {
            $filter['status.name'] = $status;
        }

        return $filter;
    }
protected function getFilterSearch(PaginateFinderConfiguration $configuration) {
        $filter = array();
        $name = $configuration->getSearchIndex('name');
        if (null !== $name && $name !== '') {
            $filter['name'] = new MongoRegex('/.*'.$name.'.*/i');
        }

        $inMenu = $configuration->getSearchIndex('inMenu');
        if (null !== $inMenu && $inMenu !== '') {
            $filter['inMenu'] = (boolean) $inMenu;
        }

        $status = $configuration->getSearchIndex('status');
        if (null !== $status && $status !== '') {
            $filter['status.name'] = $status;
        }

        return $filter;
    }
protected function getFilterSearch ( PaginateFinderConfiguration $ configuration ) { $ filter = array ( ) ; $ name = $ configuration -> getSearchIndex ( 'name' ) ; if ( null !== $ name && $ name !== '' ) { $ filter [ 'name' ] = new MongoRegex ( '/.*' . $ name . '.*/i' ) ; } $ inMenu = $ configuration -> getSearchIndex ( 'inMenu' ) ; if ( null !== $ inMenu && $ inMenu !== '' ) { $ filter [ 'inMenu' ] = ( boolean ) $ inMenu ; } $ status = $ configuration -> getSearchIndex ( 'status' ) ; if ( null !== $ status && $ status !== '' ) { $ filter [ 'status.name' ] = $ status ; } return $ filter ; }
@param PaginateFinderConfiguration $configuration

@return array
@param PaginateFinderConfiguration $configuration