private function updateContentElements(AbstractClassContent $content, array $elementsData)
    {
        foreach ($elementsData as $key => $data) {
            if (in_array('Element\Keyword', $content->getAccept()[$key])) {
                $this->entityManager
                        ->getRepository('BackBee\ClassContent\Element\Keyword')
                        ->updateKeywordLinks($content, $data, $this->token);
            }
            $content->$key = $data;
        }

        return $this;
    }
private function updateContentElements(AbstractClassContent $content, array $elementsData)
    {
        foreach ($elementsData as $key => $data) {
            if (in_array('Element\Keyword', $content->getAccept()[$key])) {
                $this->entityManager
                        ->getRepository('BackBee\ClassContent\Element\Keyword')
                        ->updateKeywordLinks($content, $data, $this->token);
            }
            $content->$key = $data;
        }

        return $this;
    }
private function updateContentElements ( AbstractClassContent $ content , array $ elementsData ) { foreach ( $ elementsData as $ key => $ data ) { if ( in_array ( 'Element\Keyword' , $ content -> getAccept ( ) [ $ key ] ) ) { $ this -> entityManager -> getRepository ( 'BackBee\ClassContent\Element\Keyword' ) -> updateKeywordLinks ( $ content , $ data , $ this -> token ) ; } $ content -> $ key = $ data ; } return $ this ; }
Updates provided content's elements with data.

@param  AbstractClassContent $content
@param  array                $elementsData

@return ClassContentManager
Updates provided content s elements with data .