Someone
public php v1 · immutable $c = new Criteria(); $id = $this->getRequestParameter('id'); $c->add(HostsPeer::ID, $id); $this->hosts = HostsPeer::doSelectJoinAll($c); //$this->hosts = HostsPeer::retrieveByPk($this->getRequestParameter('id')); $this->forward404Unless($this->hosts);public static function doSelectOneJoinAll($criteria = null){ $result = self::doSelectJoinAll($criteria); return $result[0];}