From 7797fecf929c8ca9f9f5174f42793e06e5625489 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=BCller?= Date: Tue, 29 Apr 2014 21:23:46 +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 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);