- Added a 'select' attribute, WIP on ArrayCollection and ArrayOf also

This commit is contained in:
Dave Mc Nicoll committed 2026-04-24 19:26:02 +00:00
1 parent b394b9348f
commit f938e18572
7 files changed
+56 -34

No files matched your search

+1 -1
View File
@@ -222,7 +222,7 @@ trait QueryBuildingTrait
{
if ( null === $this->queryBuilder->getFragment(Query\Select::class) ) {
$fields = $this->entityResolver->fieldList(EntityResolver::KEY_COLUMN_NAME, true);
$this->select($this->entityClass::fields(array_map(fn($f) => $f->object->name ?? $f->name, $fields)));
$this->select($this->entityClass::fields(fields: array_map(fn($f) => $f->object->name ?? $f->name, $fields), select: true));
}
if ( null === $this->queryBuilder->getFragment(Query\From::class) ) {