public function openSubject(Subject $subject)
    {
        $this->om->startFlushSuite();
        $subject->setIsClosed(false);
        $this->om->persist($subject);
        $this->dispatch(new OpenSubjectEvent($subject));
        $this->om->endFlushSuite();
    }
public function openSubject(Subject $subject)
    {
        $this->om->startFlushSuite();
        $subject->setIsClosed(false);
        $this->om->persist($subject);
        $this->dispatch(new OpenSubjectEvent($subject));
        $this->om->endFlushSuite();
    }
public function openSubject ( Subject $ subject ) { $ this -> om -> startFlushSuite ( ) ; $ subject -> setIsClosed ( false ) ; $ this -> om -> persist ( $ subject ) ; $ this -> dispatch ( new OpenSubjectEvent ( $ subject ) ) ; $ this -> om -> endFlushSuite ( ) ; }
Open a subject.

@param \Claroline\ForumBundle\Entity\Subject $subject
Open a subject .