--- 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
--- 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>
*