src/orm/classes/Manager.php
public function getTableByEntityClass($entityClass)
    {
        if ('' === strval($entityClass))
        {
            throw new InvalidArgumentException(sprintf(
                'Argument 1 passed to %s can not be blank', __METHOD__));
        }
        $entityPluginName = substr($entityClass, 0, strpos($entityClass, '_'));
        $entityPluginName = strtolower($entityPluginName);
        $plugin = Eresus_Plugin_Registry::getInstance()->load($entityPluginName);
        if (!$plugin)
        {
            return null;
        }
        $entityName = substr($entityClass, strrpos($entityClass, '_') + 1);
        $table = self::getTable($plugin, $entityName);
        return $table;
    }
public function getTableByEntityClass($entityClass)
    {
        if ('' === strval($entityClass))
        {
            throw new InvalidArgumentException(sprintf(
                'Argument 1 passed to %s can not be blank', __METHOD__));
        }
        $entityPluginName = substr($entityClass, 0, strpos($entityClass, '_'));
        $entityPluginName = strtolower($entityPluginName);
        $plugin = Eresus_Plugin_Registry::getInstance()->load($entityPluginName);
        if (!$plugin)
        {
            return null;
        }
        $entityName = substr($entityClass, strrpos($entityClass, '_') + 1);
        $table = self::getTable($plugin, $entityName);
        return $table;
    }
Возвращает таблицу по имени класса сущности

@param string $entityClass

@throws InvalidArgumentException

@return ORM_Table|null

@since 3.00