- Working on revamping Ulmus bases classes
This commit is contained in:
1 parent
13b7cf06f1
commit
1dcf32e0da
12 files changed
+303
-52
No files matched your search
@@ -237,6 +237,11 @@ trait EntityTrait {
|
||||
return true;
|
||||
}
|
||||
|
||||
# Unexisting variable
|
||||
if (! new \ReflectionClass($this)->hasProperty($name)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
# Handling undefined 'nullable'
|
||||
return new \ReflectionProperty($this, $name)->isInitialized($this);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user