public function executeList(sfWebRequest $request) { $this->tag = $this->getRoute()->getObject(); $ids = TaggingPeer::getJobIdsByTag($this->tag); $c = new Criteria(); $c->add(JobPeer::ID, $ids, Criteria::IN); $this->getPager($c, array("route" => "job_listby_tag", "slugOn" => "slug", "slug" => $this->tag->getSlug())); }
private function reloadByTag($tagId) { $c = new Criteria(); $this->routeObject = TagPeer::retrieveByPK($tagId); $ids = TaggingPeer::getJobIdsByTag($this->routeObject); $c->add(JobPeer::ID, $ids, Criteria::IN); $this->route = "job_listby_tag"; $this->propelType = "name"; $this->renderStatus = true; $this->viewingCaption = " taggings for " . $this->routeObject->__toString(); return $c; }