src/Render/Setting/RenderSettingFactory.php
protected function internalCreateRenderSetting(IMetaModel $metaModel, $settingId)
    {
        $row = $this
            ->database
            ->createQueryBuilder()
            ->select('*')
            ->from('tl_metamodel_rendersettings')
            ->where('pid=:pid')
            ->andWhere('id=:id')
            ->setParameter('pid', $metaModel->get('id'))
            ->setParameter('id', $settingId ?: 0)
            ->setMaxResults(1)
            ->execute()
            ->fetch(\PDO::FETCH_ASSOC);

        if (!$row) {
            $row = [];
        }

        $renderSetting = new Collection(
            $metaModel,
            $row,
            $this->eventDispatcher,
            $this->filterFactory,
            $this->filterUrlBuilder
        );

        if ($renderSetting->get('id')) {
            $this->collectAttributeSettings($metaModel, $renderSetting);
        }

        return $renderSetting;
    }
protected function internalCreateRenderSetting(IMetaModel $metaModel, $settingId)
    {
        $row = $this
            ->database
            ->createQueryBuilder()
            ->select('*')
            ->from('tl_metamodel_rendersettings')
            ->where('pid=:pid')
            ->andWhere('id=:id')
            ->setParameter('pid', $metaModel->get('id'))
            ->setParameter('id', $settingId ?: 0)
            ->setMaxResults(1)
            ->execute()
            ->fetch(\PDO::FETCH_ASSOC);

        if (!$row) {
            $row = [];
        }

        $renderSetting = new Collection(
            $metaModel,
            $row,
            $this->eventDispatcher,
            $this->filterFactory,
            $this->filterUrlBuilder
        );

        if ($renderSetting->get('id')) {
            $this->collectAttributeSettings($metaModel, $renderSetting);
        }

        return $renderSetting;
    }
Create a ICollection instance from the id.

@param IMetaModel $metaModel The MetaModel for which to retrieve the render setting.

@param string     $settingId The id of the ICollection.

@return ICollection The instance or null if not found.