mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-26 03:09:11 +02:00
DbObject: don't ->getId() for ->id
This commit is contained in:
parent
6e0b430dcc
commit
02c7a5c62c
@ -212,7 +212,8 @@ abstract class DbObject
|
||||
if (substr($func, -2) === '[]') {
|
||||
$func = substr($func, 0, -2);
|
||||
}
|
||||
if (method_exists($this, $func)) {
|
||||
// TODO: id check avoids collision with getId. Rethink this.
|
||||
if ($property !== 'id' && method_exists($this, $func)) {
|
||||
return $this->$func();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user