symfony-playground/templates/index/index.html.twig

38 lines
1.3 KiB
Twig
Raw Permalink Normal View History

2022-05-21 10:32:17 +00:00
{% extends 'base.html.twig' %}
{% block title %}Hello IndexController!{% endblock %}
{% block body %}
2022-05-22 16:01:54 +00:00
<ul>
{% for table in schemaManager.listTables %}
<li>
{{ table.name }}
<ul>
{% for column in schemaManager.listTableColumns(table.name) %}
<li>{{ column.name }} ({{ column.type.name }})</li>
{% endfor %}
<li>FK
<ul>
{% for fk in schemaManager.listTableForeignKeys(table.name) %}
<li>{{ fk.name ?? '??' }} ({{ fk.columns|join }}) -&gt; {{ fk.getForeignTableName() }}({{ fk.getForeignColumns()|join }})</li>
{% endfor %}
</ul>
</li>
<li>IX
<ul>
{% for fk in schemaManager.listTableIndexes(table.name) %}
<li>{{ fk.name }} ({{ fk.columns|join }})</li>
{% endfor %}
</ul>
</li>
</ul>
</li>
{% endfor %}
</ul>
2022-05-23 18:40:22 +00:00
<p><a href="{{ path('notification_dm', {'offer_id': 112}) }}">dm notification</a></p>
2022-05-21 10:32:17 +00:00
{% endblock %}