Manager/Manager.php
public function unstickSubject(Subject $subject)
    {
        $this->om->startFlushSuite();
        $subject->setIsSticked(false);
        $this->om->persist($subject);
        $this->dispatch(new UnstickSubjectEvent($subject));
        $this->om->endFlushSuite();
    }
public function unstickSubject(Subject $subject)
    {
        $this->om->startFlushSuite();
        $subject->setIsSticked(false);
        $this->om->persist($subject);
        $this->dispatch(new UnstickSubjectEvent($subject));
        $this->om->endFlushSuite();
    }
public function unstickSubject ( Subject $ subject ) { $ this -> om -> startFlushSuite ( ) ; $ subject -> setIsSticked ( false ) ; $ this -> om -> persist ( $ subject ) ; $ this -> dispatch ( new UnstickSubjectEvent ( $ subject ) ) ; $ this -> om -> endFlushSuite ( ) ; }
Unstick a subject from the top of the subject list.

@param \Claroline\ForumBundle\Entity\Subject $subject
Unstick a subject from the top of the subject list .