mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-06-08 16:22:05 -04:00
Process FlattenedObjectVars behavior last
FlattenedObjectvars returns an incompatible type for a subsequent behavior: https://github.com/Icinga/ipl-orm/issues/45
This commit is contained in:
parent
bc4cd07a82
commit
aeaf1be5bc
1 changed files with 8 additions and 2 deletions
|
|
@ -36,14 +36,20 @@ class CustomvarFlat extends Model
|
|||
|
||||
public function createBehaviors(Behaviors $behaviors)
|
||||
{
|
||||
$behaviors->add(new FlattenedObjectVars());
|
||||
|
||||
$behaviors->add(new Binary([
|
||||
'id',
|
||||
'environment_id',
|
||||
'customvar_id',
|
||||
'flatname_checksum'
|
||||
]));
|
||||
|
||||
/**
|
||||
* TODO(lippserd): Process {@link FlattenedObjectVars} last,
|
||||
* as it returns an incompatible type for a subsequent behavior:
|
||||
*
|
||||
* {@see https://github.com/Icinga/ipl-orm/issues/45}
|
||||
*/
|
||||
$behaviors->add(new FlattenedObjectVars());
|
||||
}
|
||||
|
||||
public function createRelations(Relations $relations)
|
||||
|
|
|
|||
Loading…
Reference in a new issue