add(new BoolCast(['allowed', 'denied'])); } public function createRelations(Relations $relations): void { $relations->belongsTo('icingaweb_role', Role::class) // TODO(ak): make 'role' working ->setCandidateKey('role_id') ->setJoinType('INNER'); } }