From fb609b7e5f7e88e8e5cf380140c952590c77f51e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=BCller?= Date: Tue, 29 Apr 2014 21:23:19 +0200 Subject: [PATCH] msg+done --- app/Model/DreamjobJobMsg.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);