# Data_Access::list_replies_subtree_for_topic()

Reply rows: a branch root and all descendants (BFS order), or full list when root is 0.

```php
list_replies_subtree_for_topic( int $topic_id, int $branch_root_id ): array
```

## Parameters

- `$topic_id` (int) Topic ID.
- `$branch_root_id` (int) Reply ID to treat as subtree root (0 = entire topic).

## Return

`list<object>`
