def METHOD_NAME(self) -> RepositoryProtocol:
    """The owning model, raises :class:`TypeError` when model is not set."""
    if not self._model:
        raise TypeError(
            "Can't retrieve the model since it's not set on construction"
        )
    return self._model