mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
IcingaCommandArgument: use a combined key
This commit is contained in:
parent
792ff03a6d
commit
5aba966a4b
@ -7,7 +7,9 @@ use RuntimeException;
|
||||
|
||||
class IcingaCommandArgument extends IcingaObject
|
||||
{
|
||||
protected $keyName = 'id';
|
||||
protected $keyName = ['command_id', 'argument_name'];
|
||||
|
||||
protected $autoincKeyName = 'id';
|
||||
|
||||
protected $table = 'icinga_command_argument';
|
||||
|
||||
@ -129,6 +131,7 @@ class IcingaCommandArgument extends IcingaObject
|
||||
}
|
||||
|
||||
$this->transformPlainArgumentValue($plain);
|
||||
unset($plain->command_id);
|
||||
|
||||
// Will happen only combined with $skipDefaults
|
||||
if (array_keys((array) $plain) === ['value']) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user