Skip to content

Commit f849d62

Browse files
authored
Fixed variablename
1 parent 638fda3 commit f849d62

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Command/SqlGeneratorCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public static function isForeignKeyColumn(\ReflectionProperty $property) : bool
3333

3434
public static function getForeignKeyFromName(string $columnName) : array
3535
{
36-
$parts = \explode('_', $property->getName());
36+
$parts = \explode('_', $columnName);
3737
$column = \array_pop($parts);
3838

3939
return [\implode('_', $parts), $column];

0 commit comments

Comments
 (0)