Skip to content

Commit

Permalink
User: timeperiod is nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 committed Jul 19, 2024
1 parent 2a3e7e1 commit ee70292
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Icingadb/Model/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public function createBehaviors(Behaviors $behaviors)
public function createRelations(Relations $relations)
{
$relations->belongsTo('environment', Environment::class);
$relations->belongsTo('timeperiod', Timeperiod::class);
$relations->belongsTo('timeperiod', Timeperiod::class)->setJoinType('LEFT');
$relations->belongsTo('zone', Zone::class);

$relations->belongsToMany('customvar', Customvar::class)
Expand Down

0 comments on commit ee70292

Please sign in to comment.