protected function updateBlock(array $block, $idLanguage, $idPage)
    {
        $block["LanguageId"] = $idLanguage;
        $block["PageId"] = $idPage;

        $className = $this->blockRepository->getRepositoryObjectClassName();
        $modelObject = new $className();

        $result = $this->blockRepository
                    ->setRepositoryObject($modelObject)
                    ->save($block);

        return $result;
    }
protected function updateBlock(array $block, $idLanguage, $idPage)
    {
        $block["LanguageId"] = $idLanguage;
        $block["PageId"] = $idPage;

        $className = $this->blockRepository->getRepositoryObjectClassName();
        $modelObject = new $className();

        $result = $this->blockRepository
                    ->setRepositoryObject($modelObject)
                    ->save($block);

        return $result;
    }
protected function updateBlock ( array $ block , $ idLanguage , $ idPage ) { $ block [ "LanguageId" ] = $ idLanguage ; $ block [ "PageId" ] = $ idPage ; $ className = $ this -> blockRepository -> getRepositoryObjectClassName ( ) ; $ modelObject = new $ className ( ) ; $ result = $ this -> blockRepository -> setRepositoryObject ( $ modelObject ) -> save ( $ block ) ; return $ result ; }
Updates the block, according the page and language with the new repeated status

@param  array   $block
@param  int     $idLanguage
@param  int     $idPage
@return boolean
Updates the block according the page and language with the new repeated status