public function executeLorreject() { $lorid = $this->getRequestParameter('lorid'); $lor = LorvaluesPeer::retrieveByPK($lorid); $c = new Criteria(); $c->add(LoruserPeer::LORVALUES_ID, $lorid); $loruser = LoruserPeer::doSelectOne($c); $loruser->delete(); $lor->delete(); $this->redirect('/professional/show'); }
public function getLorvalues($con = null) { include_once 'lib/model/om/BaseLorvaluesPeer.php'; if ($this->aLorvalues === null && $this->lorvalues_id !== null) { $this->aLorvalues = LorvaluesPeer::retrieveByPK($this->lorvalues_id, $con); } return $this->aLorvalues; }