We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Bug with volt Phalcon\Mvc\Model\Resultset\Complex and Volt

When i itereate through Resultset in Volt and use {{ partial }} to display each row only first row is displayed, even if partial is just file with contnet 'test' it still renders only 1 time.

When i replace {{ partial }} into {% include %} everithing works fine.

$query = $this->query('bet')
            ->join($this->betLanguagesRepository->getModel(), 'language.bet_id = bet.bet_id', 'language')
            ->columns(['language.*', 'bet.*'])
            ....
            ->andWhere('bet.parent_group_id = :parent_group_id:', ['parent_group_id' => $parent_group_id]);

$result = $query->getQuery()->execute();
{% for row in result %}
    {{ partial("partials/bets/item", ['row': row]) }}
{% endfor %}

tried and without assiment in volt

{% for row in result %}
    {{ partial("partials/bets/item") }}
{% endfor %}

in both cases it's same, printing only first row

Create issue on github please.