- Added a 'select' attribute, WIP on ArrayCollection and ArrayOf also
This commit is contained in:
1 parent
b394b9348f
commit
f938e18572
7 files changed
+56
-34
No files matched your search
@@ -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) ) {
|
||||
|
||||
Reference in new issue
Block a user