Commit e0c4f8f3 authored by Glöckler, Falko's avatar Glöckler, Falko
Browse files

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") {
Supports Markdown
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