Skip to content

Commit

Permalink
BelongsToMany elements should be the property name not the associatio…
Browse files Browse the repository at this point in the history
…n name.
  • Loading branch information
markstory committed Mar 25, 2014
1 parent 69274ca commit 76942d4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/Console/Templates/default/views/form.ctp
Expand Up @@ -34,7 +34,7 @@ use Cake\Utility\Inflector;
}
if (!empty($associations['BelongsToMany'])) {
foreach ($associations['BelongsToMany'] as $assocName => $assocData) {
echo "\t\techo \$this->Form->input('{$assocName}._ids', ['options' => \${$assocData['variable']}]);\n";
echo "\t\techo \$this->Form->input('{$assocData['property']}._ids', ['options' => \${$assocData['variable']}]);\n";
}
}
echo "\t?>\n";
Expand Down
2 changes: 0 additions & 2 deletions src/Console/Templates/default/views/index.ctp
@@ -1,7 +1,5 @@
<?php
/**
*
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
Expand Down

0 comments on commit 76942d4

Please sign in to comment.