/** * @param int $idCmsPage * @param int $idCmsBlock * @throws \Propel\Runtime\Exception\PropelException * * @return void */ public function unlinkPageBlock($idCmsPage, $idCmsBlock) { $pageBlock = $this->queryContainer->queryPageBlockByIdPageAndIdBlock($idCmsPage, $idCmsBlock)->findOne(); if ($pageBlock !== null) { $pageBlock->delete(); } $this->touchPage($idCmsPage); }