public function __construct(User $user, Task $task, $event, $message)
 {
     $this->user = $user->getId();
     $this->task = $task->getId();
     $this->event = $event;
     $this->message = $message;
     $this->eventDate = new \DateTime();
 }
 public function findByDueDate(User $user)
 {
     return $this->findBy(array('user' => $user->getId()), array('dueDate' => 'ASC'));
 }