Example #1
0
 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');
 }
Example #2
0
 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;
 }