CustomVariables: use ->id, not ->getId

This commit is contained in:
Thomas Gelf 2015-07-24 10:57:05 +02:00
parent 6d9aaf73d9
commit 747ea70a33
1 changed files with 4 additions and 2 deletions

View File

@ -103,7 +103,7 @@ class CustomVariables implements Iterator, Countable, IcingaConfigRenderer
'v.varvalue', 'v.varvalue',
'v.format', 'v.format',
) )
)->where(sprintf('v.%s = ?', $object->getVarsIdColumn()), $object->getId()); )->where(sprintf('v.%s = ?', $object->getVarsIdColumn()), $object->id);
$vars = new CustomVariables; $vars = new CustomVariables;
foreach ($db->fetchAll($query) as $row) { foreach ($db->fetchAll($query) as $row) {
@ -118,7 +118,7 @@ class CustomVariables implements Iterator, Countable, IcingaConfigRenderer
$db = $object->getDb(); $db = $object->getDb();
$table = $object->getVarsTableName(); $table = $object->getVarsTableName();
$foreignColumn = $object->getVarsIdColumn(); $foreignColumn = $object->getVarsIdColumn();
$foreignId = $object->getId(); $foreignId = $object->id;
foreach ($this->vars as $var) { foreach ($this->vars as $var) {
@ -148,6 +148,8 @@ class CustomVariables implements Iterator, Countable, IcingaConfigRenderer
); );
} }
} }
$this->setUnmodified();
} }
public function get($key) public function get($key)