src/Gossamer/Pesedget/Commands/ListCommand.php
public function execute($params = array()){
    
        if($this->entity instanceof OneToOneJoinInterface) { 
           if(array_key_exists('locale', $params)) {
               $this->getQueryBuilder()->where($params['locale']);
           }
            
            $this->getQueryBuilder()->join($this->entity->getJoinRelationships());
        }
     
        $this->getQueryBuilder()->where($params);
        
        $query = $this->getQueryBuilder()->getQuery($this->entity, QueryBuilder::GET_ALL_ITEMS_QUERY, QueryBuilder::PARENT_AND_CHILD);

        $result = $this->query($query);
        $param = get_class($this->entity) . 's';
             
        return array($param => $result, $param . 'Count' => $this->getTotalRowCount());
    }
public function execute($params = array()){
    
        if($this->entity instanceof OneToOneJoinInterface) { 
           if(array_key_exists('locale', $params)) {
               $this->getQueryBuilder()->where($params['locale']);
           }
            
            $this->getQueryBuilder()->join($this->entity->getJoinRelationships());
        }
     
        $this->getQueryBuilder()->where($params);
        
        $query = $this->getQueryBuilder()->getQuery($this->entity, QueryBuilder::GET_ALL_ITEMS_QUERY, QueryBuilder::PARENT_AND_CHILD);

        $result = $this->query($query);
        $param = get_class($this->entity) . 's';
             
        return array($param => $result, $param . 'Count' => $this->getTotalRowCount());
    }
public function execute ( $ params = array ( ) ) { if ( $ this -> entity instanceof OneToOneJoinInterface ) { if ( array_key_exists ( 'locale' , $ params ) ) { $ this -> getQueryBuilder ( ) -> where ( $ params [ 'locale' ] ) ; } $ this -> getQueryBuilder ( ) -> join ( $ this -> entity -> getJoinRelationships ( ) ) ; } $ this -> getQueryBuilder ( ) -> where ( $ params ) ; $ query = $ this -> getQueryBuilder ( ) -> getQuery ( $ this -> entity , QueryBuilder :: GET_ALL_ITEMS_QUERY , QueryBuilder :: PARENT_AND_CHILD ) ; $ result = $ this -> query ( $ query ) ; $ param = get_class ( $ this -> entity ) . 's' ; return array ( $ param => $ result , $ param . 'Count' => $ this -> getTotalRowCount ( ) ) ; }
retrieves a multiple rows from the database

@param array     URI params
@param array     POST params
retrieves a multiple rows from the database