private function commitPostProcess(AbstractClassContent $content, Revision $draft)
    {
        $data = $draft->jsonSerialize();
        if (0 !== count($data['parameters']) && 0 !== count($data['elements'])) {
            $draft->setRevision($content->getRevision());
            $draft->setState(Revision::STATE_MODIFIED);
            $this->entityManager->persist($draft);
        }

        return $this;
    }
private function commitPostProcess(AbstractClassContent $content, Revision $draft)
    {
        $data = $draft->jsonSerialize();
        if (0 !== count($data['parameters']) && 0 !== count($data['elements'])) {
            $draft->setRevision($content->getRevision());
            $draft->setState(Revision::STATE_MODIFIED);
            $this->entityManager->persist($draft);
        }

        return $this;
    }
private function commitPostProcess ( AbstractClassContent $ content , Revision $ draft ) { $ data = $ draft -> jsonSerialize ( ) ; if ( 0 !== count ( $ data [ 'parameters' ] ) && 0 !== count ( $ data [ 'elements' ] ) ) { $ draft -> setRevision ( $ content -> getRevision ( ) ) ; $ draft -> setState ( Revision :: STATE_MODIFIED ) ; $ this -> entityManager -> persist ( $ draft ) ; } return $ this ; }
Runs process of post commit.

@param  AbstractClassContent $content
@param  Revision             $draft

@return ClassContentManager
Runs process of post commit .