Skip to content

Commit

Permalink
Merge pull request #9 from ngodfraind/master
Browse files Browse the repository at this point in the history
Fixing wrong use.
  • Loading branch information
maxailloud committed Mar 13, 2015
2 parents 498d88f + 0a7db7f commit b5f55ab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 72 deletions.
69 changes: 0 additions & 69 deletions Entity/NotifiableInterface.php

This file was deleted.

2 changes: 1 addition & 1 deletion Listener/LogListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Claroline\CoreBundle\Event\Log\LogGenericEvent;
use Claroline\CoreBundle\Library\Configuration\PlatformConfigurationHandler;
use JMS\DiExtraBundle\Annotation as DI;
use Icap\NotificationBundle\Entity\NotifiableInterface;
use Claroline\CoreBundle\Event\Log\NotifiableInterface;
use Icap\NotificationBundle\Manager\NotificationManager as NotificationManager;

/**
Expand Down
4 changes: 2 additions & 2 deletions Manager/NotificationManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Icap\NotificationBundle\Manager;

use Icap\NotificationBundle\Entity\FollowerResource;
use Icap\NotificationBundle\Entity\NotifiableInterface;
use Claroline\CoreBundle\Event\Log\NotifiableInterface;
use Icap\NotificationBundle\Entity\Notification;
use Icap\NotificationBundle\Entity\NotificationViewer;
use Doctrine\ORM\EntityManager;
Expand Down Expand Up @@ -203,7 +203,7 @@ public function notifyUsers(Notification $notification, $userIds)
$notificationViewer->setNotification($notification);
$notificationViewer->setViewerId($userId);
$notificationViewer->setStatus(false);

$this->getEntityManager()->persist($notificationViewer);
}
}
Expand Down

0 comments on commit b5f55ab

Please sign in to comment.