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, ' '); + } }