Character model: added default parameters for name and displayName.

This commit is contained in:
Basilius Sauter
2019-03-08 14:29:31 +01:00
parent 684f86aed6
commit 8f69527764
+2 -2
View File
@@ -44,9 +44,9 @@ class Character implements CharacterInterface, CreateableInterface, GameAwareInt
/** @Id @Column(type="uuid", unique=True) */
private $id;
/** @Column(type="string", length=50); */
private $name;
private $name = "";
/** @Column(type="text"); */
private $displayName;
private $displayName = "";
/** @Column(type="integer", options={"default":10}) */
private $maxHealth = 10;
/** @Column(type="integer", options={"default":10}) */