protected function get($id) {
		if ($this->pool === null) {
			$this->pool = new Map();
		} else if ($this->pool->has($id)) {
			return $this->pool->get($id);
		}

		$model = SportQuery::create()->findOneById($id);
		$this->pool->set($id, $model);

		return $model;
	}
protected function get($id) {
		if ($this->pool === null) {
			$this->pool = new Map();
		} else if ($this->pool->has($id)) {
			return $this->pool->get($id);
		}

		$model = SportQuery::create()->findOneById($id);
		$this->pool->set($id, $model);

		return $model;
	}
protected function get ( $ id ) { if ( $ this -> pool === null ) { $ this -> pool = new Map ( ) ; } else if ( $ this -> pool -> has ( $ id ) ) { return $ this -> pool -> get ( $ id ) ; } $ model = SportQuery :: create ( ) -> findOneById ( $ id ) ; $ this -> pool -> set ( $ id , $ model ) ; return $ model ; }
Returns one Sport with the given id from cache

@param mixed $id
@return Sport|null
Returns one Sport with the given id from cache