Commit e0c4f8f3 by Glöckler, Falko

corrected foreign key assumption

parent 47e586b9
......@@ -128,7 +128,7 @@ COMMAND;
foreach ($foreignKeys as $fk) {
$modelName = ucfirst(singularize(explode("_", $fk['foreign_key'])[0]));
$modelName = ucfirst(singularize($fk['referenced_table']));
$modelTableName = $fk['referenced_table'];
if ($modelName == "User") {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment