Skip to content

findMany() issue with outputFormatting, not consistent with find() #2126

@er314

Description

@er314

a page obtained via get() or find() initially has its outputFormatting at true,
while a page obtained via findMany() does not ; I would expect that it does, too.

$id = 9739;  // or whatever

$pg = pages()->get("id={$id}");
echo (int)$pg->of();  // of=1

$arrPg = pages()->find("id={$id}");
$pg = $arrPg->first();
echo (int)$pg->of();  // of=1

$arrPgMany = pages()->findMany("id={$id}");
$pg = $arrPgMany->first();
echo (int)$pg->of();  // of=0 !!!

PW 3.0.242 & 3.0.251

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions