public function getCmsReferenceFieldId($relation)
    {
        if (    ! array_key_exists($relation, $this->relationsConfig)
            ||  ! array_key_exists('field', $this->relationsConfig[$relation])
        ) {
            return null;
        }

        return (int) $this->relationsConfig[ $relation ]['field'];
    }