src/orm/classes/Driver/SQL.php
private function getDriverFieldType(ORM_Field_Abstract $field)
    {
        $fieldType = get_class($field);
        $driver = substr(get_class($this), strrpos(get_class($this), '_') + 1);
        $driverFieldType = str_replace('_Field_', '_Driver_' . $driver . '_', $fieldType);
        if (class_exists($driverFieldType))
        {
            $driverField = new $driverFieldType($field);
            if ($driverField instanceof ORM_Driver_SQL_Field)
            {
                return $driverField;
            }
        }
        return $field;
    }
private function getDriverFieldType(ORM_Field_Abstract $field)
    {
        $fieldType = get_class($field);
        $driver = substr(get_class($this), strrpos(get_class($this), '_') + 1);
        $driverFieldType = str_replace('_Field_', '_Driver_' . $driver . '_', $fieldType);
        if (class_exists($driverFieldType))
        {
            $driverField = new $driverFieldType($field);
            if ($driverField instanceof ORM_Driver_SQL_Field)
            {
                return $driverField;
            }
        }
        return $field;
    }
Возвращает объявление типа поля

@param ORM_Field_Abstract $field

@return ORM_Field_Abstract|ORM_Driver_SQL_Field