public function updateSessionConfiguration()
    {
        $configuration = clone $this->getUserConfiguration();
        $userSession = $this->manager->getRepository('QcmPublicBundle:UserSession')->findOneBy(array(
            'id' => $this->userSession->getId()
        ));

        $userSession->setConfiguration($configuration);
        $this->manager->persist($userSession);
        $this->manager->flush();

        $this->session->set('user_session', $userSession);

        return $this;
    }
public function updateSessionConfiguration()
    {
        $configuration = clone $this->getUserConfiguration();
        $userSession = $this->manager->getRepository('QcmPublicBundle:UserSession')->findOneBy(array(
            'id' => $this->userSession->getId()
        ));

        $userSession->setConfiguration($configuration);
        $this->manager->persist($userSession);
        $this->manager->flush();

        $this->session->set('user_session', $userSession);

        return $this;
    }
public function updateSessionConfiguration ( ) { $ configuration = clone $ this -> getUserConfiguration ( ) ; $ userSession = $ this -> manager -> getRepository ( 'QcmPublicBundle:UserSession' ) -> findOneBy ( array ( 'id' => $ this -> userSession -> getId ( ) ) ) ; $ userSession -> setConfiguration ( $ configuration ) ; $ this -> manager -> persist ( $ userSession ) ; $ this -> manager -> flush ( ) ; $ this -> session -> set ( 'user_session' , $ userSession ) ; return $ this ; }
Update user session

@return $this
Update user session