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 authored and Matan Bareket committed 2020-09-27 22:08:07 -04:00
1 parent d455741806
commit 4d78399ea2
15 files changed
+396 -376

No files matched your search

+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()
{