From 65a3e791dc926dbbbc3005f0a0e85f364e2298d3 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Mon, 11 Apr 2022 10:50:38 +0200 Subject: [PATCH] Process FlattenedObjectVars behavior last FlattenedObjectvars returns an incompatible type for a subsequent behavior: https://github.com/Icinga/ipl-orm/issues/45 --- library/Icingadb/Model/CustomvarFlat.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/library/Icingadb/Model/CustomvarFlat.php b/library/Icingadb/Model/CustomvarFlat.php index 9350a812c..c3c489e20 100644 --- a/library/Icingadb/Model/CustomvarFlat.php +++ b/library/Icingadb/Model/CustomvarFlat.php @@ -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)