WEB: Add error handling about missing required fields

In the new data model, some field operate as keys for other parts of the model.
This now performs some validations and will throw an error if fields are missing.

For example: a Game must have an Engine, but does not require datafiles
This commit is contained in:
Mataniko
2020-09-27 22:08:07 -04:00
committed by Matan Bareket
parent d455741806
commit 4d78399ea2
15 changed files with 396 additions and 376 deletions
+5
View File
@@ -16,6 +16,11 @@ abstract class BasicObject
$this->name = $data['name'];
}
public function __toString()
{
return $this->getName();
}
/* Get the name. */
public function getName()
{