Merge branch 'Xbird/FixNotif' into 'main'
Fix notification error See merge request gamexperience/vision!34
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"version": "0.2.3"
|
||||
"version": "0.2.4"
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\EventSubscriber;
|
||||
|
||||
use App\Entity\Notification;
|
||||
use App\Entity\User;
|
||||
use Twig\Environment;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
@@ -42,7 +43,7 @@ class NotificationsSubscriber implements EventSubscriberInterface
|
||||
* @var NotificationRepository notificationRepo
|
||||
*/
|
||||
|
||||
if (null === ($notificationRepo = $this->entityManager->getRepository("App:Notification"))) {
|
||||
if (null === ($notificationRepo = $this->entityManager->getRepository(Notification::class))) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user