Skip to content
Snippets Groups Projects
Commit ba0b54e3 authored by Jared Hancock's avatar Jared Hancock
Browse files

oops: Fix crash on installation

User::fromVars in class ticket was the root. Eventually, in
DynamicForm::getDynamicFields(), isset($this->id) was used to detect
unsaved, new forms that have not been committed to the database; however,
the isset() method was not implemented for the ORM.
parent 2a7b8c31
No related branches found
No related tags found
No related merge requests found
...@@ -49,6 +49,14 @@ class VerySimpleModel { ...@@ -49,6 +49,14 @@ class VerySimpleModel {
} }
} }
function __isset($field) {
return array_key_exists($field, $this->ht)
|| isset(static::$meta['joins'][$field]);
}
function __unset($field) {
unset($this->ht[$field]);
}
function set($field, $value) { function set($field, $value) {
// Update of foreign-key by assignment to model instance // Update of foreign-key by assignment to model instance
if (isset(static::$meta['joins'][$field])) { if (isset(static::$meta['joins'][$field])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment