src/ActiveDoctrine/Entity/EntitySelector.php
/**
     * Execute the query and return the result.
     *
     * @return mixed An EntityCollection, Entity or integer.
     */
Execute the query and return the result.
@return mixed An EntityCollection, Entity or integer.
Execute the query and return the result . @return mixed An EntityCollection Entity or integer .
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.
Execute the query and return the result .