{% if object is defined %}
    {% set childrens = attribute(object, 'childrens') %}
    <table class="table"> 
        <tr class="sonata-ba-view-container">
            <th>Osoby ( {{ childrens|length}} )</th>
            <td>
                {% if childrens is not empty %}
                    {% for key, item in childrens %}
                        {{ (key) }}. {{ item }} <br />
                    {% endfor %}
                {% endif %}
            </td>
        </tr>
    </table>
{% endif %}