public function addWorkTime($user, $date, $car, $model, $desc, $isblocked = 0)
 {
     $workerTime = new WorkTime();
     $workerTime->setForWorker($user);
     $workerTime->setCar($car);
     $workerTime->setModel($model);
     $workerTime->setDescription($desc);
     $workerTime->setIsBlocked($isblocked);
     $workerTime->setDate(new \DateTime($date));
     $this->getEntityManager()->persist($workerTime);
     $this->getEntityManager()->flush();
 }
 /**
  * {@inheritDoc}
  */
 public function setIsBlocked($blocked)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'setIsBlocked', [$blocked]);
     return parent::setIsBlocked($blocked);
 }