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…
Reference in New Issue