diff --git a/app/Controller/JobController.php b/app/Controller/JobController.php index b501406..c7c7d83 100644 --- a/app/Controller/JobController.php +++ b/app/Controller/JobController.php @@ -10,7 +10,7 @@ class JobController extends AppController { * @var array */ - public $uses = array('DreamjobJobOpening','DreamjobJobFavority','DreamjobJobApplication','DreamjobPageText','DreamjobPageImage','DreamjobJobMsg','DreamjobCvEntry','DreamjobListCvCategory','DreamjobListBranch','DreamjobListCity','DreamjobJobMsg'); + public $uses = array('DreamjobJobOpening','DreamjobJobFavority','DreamjobJobApplication','DreamjobPageText','DreamjobPageImage','DreamjobJobMsg','DreamjobCvEntry','DreamjobListCvCategory','DreamjobListBranch','DreamjobListCity'); /** * Displays a view diff --git a/app/Model/DreamjobJobMsg.php b/app/Model/DreamjobJobMsg.php index 4784f33..42d0c71 100644 --- a/app/Model/DreamjobJobMsg.php +++ b/app/Model/DreamjobJobMsg.php @@ -47,7 +47,7 @@ class DreamjobJobMsg extends AppModel { $dataSource->begin(); $result = $this->save(); if($result){ - $app = $this->DreamjobJobApplication->find('first', array('conditions' => array('DreamjobJobApplication.id' => $this->application_id))); + $app = $this->Application->find('first', array('conditions' => array('DreamjobJobApplication.id' => $this->application_id))); if($this->fromcompany) $result = self::sendMail($app['User']['mail'],$this->application_id); else