diff --git a/app/Model/DreamjobJobMsg.php b/app/Model/DreamjobJobMsg.php index ccfe5d2..0d13a58 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->Application->find('first', array('conditions' => array('Application.id' => $result["DreamjobJobMsg"]["application_id"]))); + $app = $this->DreamjobJobApplication->find('first', array('conditions' => array('Application.id' => $result["DreamjobJobMsg"]["application_id"]))); echo var_dump($app); exit(1);