summaryrefslogtreecommitdiff
path: root/protected/controllers/VereinController.php
diff options
context:
space:
mode:
Diffstat (limited to 'protected/controllers/VereinController.php')
-rw-r--r--protected/controllers/VereinController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/protected/controllers/VereinController.php b/protected/controllers/VereinController.php
index 2be85d6..e0a3e68 100644
--- a/protected/controllers/VereinController.php
+++ b/protected/controllers/VereinController.php
@@ -143,7 +143,7 @@ class VereinController extends Controller
*/
public function loadModel($id)
{
- $model=Verein::model()->findByPk($id);
+ $model=Verein::model()->with('angebote','veranstaltungen')->findByPk($id);
if($model===null)
throw new CHttpException(404,'The requested page does not exist.');
return $model;