# HG changeset patch
# User Markus Broeker<broeker.markus@googlemail.com>
# Date 1455464898 -3600
# Node ID 6c8c5f70b86f4e946b50a029a122d7cc95920dad
# Parent  8b4f9c6136f4d2a9183ef1238aed858276f2ce4f
Default Werte für die Entities

diff --git a/classes/bfw/entities/TGroup.php b/classes/bfw/entities/TGroup.php
--- a/classes/bfw/entities/TGroup.php
+++ b/classes/bfw/entities/TGroup.php
@@ -15,6 +15,12 @@
     const SYSTEM = 1;
     const ADMIN = 2;
 
+    public function __construct() {
+        parent::__construct();
+
+        $this->setName('');
+    }
+
     /**
      * @param $name
      * @return array|null
diff --git a/classes/bfw/entities/TUser.php b/classes/bfw/entities/TUser.php
--- a/classes/bfw/entities/TUser.php
+++ b/classes/bfw/entities/TUser.php
@@ -14,6 +14,16 @@
 
     const SYSTEM = 1;
 
+    public function __construct() {
+        parent::__construct();
+
+        $this->setUsername('');
+        $this->setFirstname('');
+        $this->setLastname('');
+        $this->setPassword('');
+        $this->setGroupId(1);
+    }
+
     /**
      * <b>Liefert eine User-Instanz für den per Parameter übergebenen Nutzernamen.</b>
      *