# Repeaters and rows

Source: https://uglydev.com/docs/troubleshooting/repeaters-and-rows/
Updated: 19 November 2026

## `(array) $row` gives garbage

A row is an object. Use `$row->toArray()`.

## `$row + array( … )` fails

Same reason. Use `array_merge( $row->toArray(), … )`.

## A repeater inside a repeater inside a repeater

Not allowed. Use a **group** to organize the third level. The builder tells you when you try, and a file that has one is refused naming the repeater.

## `have_rows()` does not exist

There is no `have_rows()`. Use `foreach ( ugly_rows( 'name' ) as $row )`.

## The rows are in the wrong order

Rows keep the order of the editor. Check you are not sorting them in your code.
