<commit_before><?php

{% block namespace %}
namespace {{ schema.namespace.raw }}\TableMap;
{% endblock %}

{% block import %}
use Rocket\ORM\Model\Map\TableMap;
{% endblock import %}

{% block comment %}
/**
 * Generated by Rocket ORM.
 * Do not edit this file, use the generation command instead.
 *
 * "{{ schema.database }}.{{ table.name }}" Table Map
 */
{% endblock %}
{% block definition %}
class {{ table.phpName }}TableMap extends {% block extends 'TableMap' %}
{% endblock %}

{
    /**
     * Configure the table map
     */
    public function configure()
    {
        {% block schema -%}
        $this->setConnectionName('{{ schema.connection }}');
        $this->setDatabase('{{ schema.database }}');
        {% endblock %}

        {% block model -%}
        $this->setTableName('{{ table.name }}');
        $this->setClassName('{{ table.phpName }}');
        $this->setClassNamespace('{{ schema.namespace.escaped }}');
        {% endblock %}

        {% block columns -%}
        {% for column in table.columns -%}
            $this->addColumn('
                {{- column.name }}', '{{ column.phpName }}', {{ column.type }}, {{ null == column.size ? 'null' : column.size }},
                {{- null == column.decimal ? ' null' : ' ' ~ column.decimal }},
                {%- if null == column.default %} null{% else %} '{{ column.default }}'{% endif %},
                {{- column.required ? ' true' : ' false' -}}
            );
        {% endfor %}
        {%- endblock %}

        {% block primary_keys -%}
        {% for primaryKey in table.primaryKeys -%}
            $this->addPrimaryKey('{{ primaryKey.name }}', {{ primaryKey.autoincrement ? 'true' : 'false' }});
        {%- endfor %}{% endblock %}

    {% block relations %}{% if table.relations|length > 0 %}

        {% for relation in table.relations -%}
            $this->addRelation('{{ relation.with }}', '{{ relation.phpName }}', {{ relation.type }}, '{{ relation.local }}', '{{ relation.foreign }}');
    {% endfor %}{% endif %}
        {%- endblock -%}

    }

    {%- block custom '' %}

}<commit_msg>fix: table map view.<commit_after><?php

{% block namespace %}
namespace {{ table.schema.namespace }}\TableMap;
{% endblock %}

{% block import %}
use Rocket\ORM\Model\Map\TableMap;
{% endblock import %}

{% block comment %}
/**
 * Generated by Rocket ORM.
 * Do not edit this file, use the generation command instead.
 *
 * "{{ table.schema.database }}.{{ table.name }}" Table Map
 */
{% endblock %}
{% block definition %}
class {{ table.phpName }}TableMap extends {% block extends 'TableMap' %}
{% endblock %}

{
    /**
     * Configure the table map
     */
    public function configure()
    {
        {% block schema -%}
        $this->setConnectionName('{{ table.schema.connection }}');
        $this->setDatabase('{{ table.schema.database }}');
        {% endblock %}

        {% block model -%}
        $this->setTableName('{{ table.name }}');
        $this->setClassName('{{ table.phpName }}');
        $this->setClassNamespace('{{ table.schema.escapedNamespace }}');
        {% endblock %}

        {% block columns -%}
        {% for column in table.columns -%}
            $this->addColumn('
                {{- column.name }}', '{{ column.phpName }}', self::{{ column.typeAsString }}, {{ null == column.size ? 'null' : column.size }},
                {{- null == column.decimal ? ' null' : ' ' ~ column.decimal }},
                {%- if null == column.values %} null{% else %} ['{{ column.values|join("', '")|raw }}']{% endif %},
                {%- if null == column.default %} null{% else %} '{{ column.default }}'{% endif %},
                {{- column.isRequired ? ' true' : ' false' -}}
            );
        {% endfor %}
        {%- endblock %}

        {% block primary_keys -%}
        {% for primaryKey in table.primaryKeys -%}
            $this->addPrimaryKey('{{ primaryKey.name }}', {{ primaryKey.isAutoIncrement ? 'true' : 'false' }});
        {% endfor %}
        {%- endblock %}

        {% block relations -%}
        {% for relation in table.relations -%}
            $this->addRelation('{{ relation.with }}', '{{ relation.phpName }}', self::{{ relation.typeAsString }}, '{{ relation.local }}', '{{ relation.foreign }}');
        {% endfor %}
        {%- endblock %}

        {%- block custom_configure '' %}

    }

    {%- block custom '' %}

}
{'fraction_non_alphanumeric': 0.2032967032967033, 'fraction_numerical': 0.00022893772893772894, 'mean_word_length': 2.2726591760299626, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 20, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4629066', 'n_tokens_mistral': 1392, 'n_tokens_neox': 1253, 'n_words': 271}