private function save(ContentRepository $contentRepo, Content $content, $type, $legacyType)
    {
        try {
            $contentRepo->save($content);
            $this->dispatch($content, $type, $legacyType);
        } catch (DBALException $e) {
            $contentTypeName = $contentRepo->getClassMetadata()->getBoltName();
            $message = "Timed update of records for $contentTypeName failed: " . $e->getMessage();

            $this->systemLogger->critical($message, ['event' => 'exception', 'exception' => $e]);
        }
    }
private function save(ContentRepository $contentRepo, Content $content, $type, $legacyType)
    {
        try {
            $contentRepo->save($content);
            $this->dispatch($content, $type, $legacyType);
        } catch (DBALException $e) {
            $contentTypeName = $contentRepo->getClassMetadata()->getBoltName();
            $message = "Timed update of records for $contentTypeName failed: " . $e->getMessage();

            $this->systemLogger->critical($message, ['event' => 'exception', 'exception' => $e]);
        }
    }
private function save ( ContentRepository $ contentRepo , Content $ content , $ type , $ legacyType ) { try { $ contentRepo -> save ( $ content ) ; $ this -> dispatch ( $ content , $ type , $ legacyType ) ; } catch ( DBALException $ e ) { $ contentTypeName = $ contentRepo -> getClassMetadata ( ) -> getBoltName ( ) ; $ message = "Timed update of records for $contentTypeName failed: " . $ e -> getMessage ( ) ; $ this -> systemLogger -> critical ( $ message , [ 'event' => 'exception' , 'exception' => $ e ] ) ; } }
Save a modified entity.

@param ContentRepository $contentRepo
@param Content           $content
@param string            $type
@param string            $legacyType
Save a modified entity .