eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway\ExceptionConversion::assignSectionToContent PHP Method

assignSectionToContent() public method

Inserts the assignment of $contentId to $sectionId.
public assignSectionToContent ( integer $sectionId, integer $contentId )
$sectionId integer
$contentId integer
    public function assignSectionToContent($sectionId, $contentId)
    {
        try {
            return $this->innerGateway->assignSectionToContent($sectionId, $contentId);
        } catch (DBALException $e) {
            throw new RuntimeException('Database error', 0, $e);
        } catch (PDOException $e) {
            throw new RuntimeException('Database error', 0, $e);
        }
    }