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)