The toPages() field method only returns published (listed and unlisted) pages, not drafts.
To get drafts into your collection as well, you need a custom field method, e.g. toPagesAndDrafts().
The toPages() field method only returns published (listed and unlisted) pages, not drafts.
To get drafts into your collection as well, you need a custom field method, e.g. toPagesAndDrafts().