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