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 5, 2022
1 parent 611e8c8 commit 574089e
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 574089e

Please sign in to comment.