Skip to content

Commit

Permalink
Fix pluralization for table names
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffrey Way committed Aug 2, 2013
1 parent d188f17 commit bb6f70c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Way/Generators/Commands/PivotGeneratorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ public function fire()
'--fields' => implode(', ', array(
"{$tables[0]}_id:integer:unsigned:index",
"{$tables[1]}_id:integer:unsigned:index",
"{$tables[0]}_id:foreign:references('id'):on('{$tables[0]}'):onDelete('cascade')",
"{$tables[1]}_id:foreign:references('id'):on('{$tables[1]}'):onDelete('cascade')"
"{$tables[0]}_id:foreign:references('id'):on('" . str_plural($tables[0]) . "'):onDelete('cascade')",
"{$tables[1]}_id:foreign:references('id'):on('" . str_plural($tables[1]) . "'):onDelete('cascade')"
))
)
);
Expand Down

0 comments on commit bb6f70c

Please sign in to comment.