src/ActiveDoctrine/Entity/EntitySelector.php
public function execute()
    {
        if ($this->counting) {
            return $this->executeCount();
        }

        if ($this->single) {
            return $this->executeSingle($this->entity_class);
        }

        return $this->executeCollection($this->entity_class);
    }
public function execute()
    {
        if ($this->counting) {
            return $this->executeCount();
        }

        if ($this->single) {
            return $this->executeSingle($this->entity_class);
        }

        return $this->executeCollection($this->entity_class);
    }
public function execute ( ) { if ( $ this -> counting ) { return $ this -> executeCount ( ) ; } if ( $ this -> single ) { return $ this -> executeSingle ( $ this -> entity_class ) ; } return $ this -> executeCollection ( $ this -> entity_class ) ; }
Execute the query and return the result.

@return mixed An EntityCollection, Entity or integer.
Execute the query and return the result .