We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70a673c commit 12fb150Copy full SHA for 12fb150
src/Tqdev/PhpCrudApi/Column/Reflection/ReflectedTable.php
@@ -137,7 +137,7 @@ public function getFksTo(string $tableName): array
137
{
138
$columns = array();
139
foreach ($this->fks as $columnName => $referencedTableName) {
140
- if ($tableName == $referencedTableName) {
+ if ($tableName == $referencedTableName && !is_null($this->columns[$columnName])) {
141
$columns[] = $this->columns[$columnName];
142
}
143
0 commit comments