diff --git a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod.php b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod.php index bd3211c5d..ff26d7b20 100644 --- a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod.php +++ b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod.php @@ -975,7 +975,7 @@ class AccompanyingPeriod implements public function hasPreviousUser(): bool { - return null !== $this->userPrevious; + return $this->user !== $this->userPrevious; } /**