diff --git a/app/Model/DreamjobJobMsg.php b/app/Model/DreamjobJobMsg.php index 1bbbf43..3f33539 100644 --- a/app/Model/DreamjobJobMsg.php +++ b/app/Model/DreamjobJobMsg.php @@ -47,11 +47,7 @@ class DreamjobJobMsg extends AppModel { $dataSource->begin(); $result = $this->save(); if($result){ - $con = array('conditions' => array('DreamjobJobApplication.id' => $result["DreamjobJobMsg"]["application_id"])); - echo "Lola"; - $app = $this->DreamjobJobApplication->find('first' ); - echo var_dump($app); - exit(1); + $app = $this->DreamjobJobApplication->find('first',array('conditions' => array('DreamjobJobApplication.id' => $result["DreamjobJobMsg"]["application_id"])) ); if($this->fromcompany) $result = self::sendMail($app['User']['mail'],$this->application_id);