Skip to content

Commit aca3b6a

Browse files
committed
Fixing issue with quoted columns
1 parent b8c40d4 commit aca3b6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TdbmFluidColumnGraphqlOptions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ private function generateFieldAnnotation(): void
6767
} else {
6868
// If the column is the primary key, let's add an ID type
6969
$pk = $this->tdbmFluidColumnOptions->then()->getDbalTable()->getPrimaryKey();
70-
if ($pk !== null && $pk->getColumns() === [$this->fluidColumn->getDbalColumn()->getName()]) {
70+
if ($pk !== null && $pk->getUnquotedColumns() === [$this->fluidColumn->getDbalColumn()->getName()]) {
7171
$outputType = 'ID';
7272
}
7373
}

0 commit comments

Comments
 (0)