src/DcGeneral/Events/BaseSubscriber.php
protected function getMetaModelById($modelId)
    {
        $services     = $this->getServiceContainer();
        $modelFactory = $services->getFactory();
        $name         = $modelFactory->translateIdToMetaModelName($modelId);

        return $modelFactory->getMetaModel($name);
    }
protected function getMetaModelById($modelId)
    {
        $services     = $this->getServiceContainer();
        $modelFactory = $services->getFactory();
        $name         = $modelFactory->translateIdToMetaModelName($modelId);

        return $modelFactory->getMetaModel($name);
    }
Retrieve the MetaModel with the given id.

@param int $modelId The model being processed.

@return IMetaModel