diff --git a/app/Model/DreamjobJobMsg.php b/app/Model/DreamjobJobMsg.php index 9c25814..18e1cc2 100644 --- a/app/Model/DreamjobJobMsg.php +++ b/app/Model/DreamjobJobMsg.php @@ -48,8 +48,9 @@ class DreamjobJobMsg extends AppModel { $result = $this->save(); if($result){ - $app = $this->Application->find('first', array('conditions' => array('DreamjobJobApplication.id' => $result["DreamjobJobMsg"]["application_id"]))); + $app = $this->Application->find('first', array('conditions' => array('Application.id' => $result["DreamjobJobMsg"]["application_id"]))); echo var_dump($app); + echo "Lola"; exit(1); if($this->fromcompany)