From eaea917c1f174521b8fec93dd992a0165f201590 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Thu, 11 Jun 2015 22:01:12 +0200 Subject: [PATCH] IcingaCommand: render methods_execute as execute --- library/Director/Objects/IcingaCommand.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/library/Director/Objects/IcingaCommand.php b/library/Director/Objects/IcingaCommand.php index e3e38ca7..71df428f 100644 --- a/library/Director/Objects/IcingaCommand.php +++ b/library/Director/Objects/IcingaCommand.php @@ -2,6 +2,8 @@ namespace Icinga\Module\Director\Objects; +use Icinga\Module\Director\IcingaConfigHelper as c; + class IcingaCommand extends IcingaObject { protected $table = 'icinga_command'; @@ -15,4 +17,10 @@ class IcingaCommand extends IcingaObject 'zone_id' => null, 'object_type' => null, ); + + protected function renderMethods_execute() + { + // Execute is a reserved word in SQL, column name was prefixed + return c::renderKeyValue('execute', $this->methods_execute, ' '); + } }