public function __construct()
 {
     $this->myCarpoolings = new ArrayCollection();
     $this->myCarpoolingsApplication = new ArrayCollection();
     $this->myCarpoolingsSelection = new ArrayCollection();
     $this->myLessons = new ArrayCollection();
     $this->myLessonsApplication = new ArrayCollection();
     $this->lessons = new ArrayCollection();
     $this->mandates = new ArrayCollection();
     $this->evaluations = new ArrayCollection();
     $this->appliances = new ArrayCollection();
     $this->myOffers = new ArrayCollection();
     $this->myOffersApplications = new ArrayCollection();
     $this->notifications = new ArrayCollection();
     $this->activeChat = true;
     $this->addRole("ROLE_USER");
     parent::__construct();
 }
Example #2
0
 public function sendQualityMail(User $user, $title, $body, $nom)
 {
     $template = $this->parameters['template']['quality'];
     $rendered = $this->templating->render($template, array("nom" => $nom, "body" => $body, "title" => $title, "user" => $user->getUsername()));
     $this->sendEmailMessage($rendered, "*****@*****.**");
 }
Example #3
0
 public function __construct()
 {
     parent::__construct();
 }