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

countContentObjectsInSection() public method

Counts the number of content objects assigned to section with $id.
    public function countContentObjectsInSection($id)
    {
        try {
            return $this->innerGateway->countContentObjectsInSection($id);
        } catch (DBALException $e) {
            throw new RuntimeException('Database error', 0, $e);
        } catch (PDOException $e) {
            throw new RuntimeException('Database error', 0, $e);
        }
    }