We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 638fda3 commit f849d62Copy full SHA for f849d62
1 file changed
src/Command/SqlGeneratorCommand.php
@@ -33,7 +33,7 @@ public static function isForeignKeyColumn(\ReflectionProperty $property) : bool
33
34
public static function getForeignKeyFromName(string $columnName) : array
35
{
36
- $parts = \explode('_', $property->getName());
+ $parts = \explode('_', $columnName);
37
$column = \array_pop($parts);
38
39
return [\implode('_', $parts), $column];
0 commit comments