Skip to content

Commit

Permalink
Process FlattenedObjectVars behavior last
Browse files Browse the repository at this point in the history
FlattenedObjectvars returns an incompatible type for a subsequent
behavior:

Icinga/ipl-orm#45
  • Loading branch information
lippserd committed May 19, 2022
1 parent f65d0a8 commit 65a3e79
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions library/Icingadb/Model/CustomvarFlat.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,20 @@ public function getColumns()

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)
Expand Down

0 comments on commit 65a3e79

Please sign in to comment.