mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Closes #3123, Unnecessary comment generated by bake
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5660 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
5c7f53d9fb
commit
563019c91f
1 changed files with 4 additions and 1 deletions
|
@ -488,7 +488,10 @@ class ModelTask extends Shell {
|
|||
$out .= "\n";
|
||||
|
||||
if (!empty($associations)) {
|
||||
if(!empty($associations['belongsTo']) || !empty($associations['$hasOne']) || !empty($associations['hasMany']) || !empty($associations['hasAndBelongsToMany'])) {
|
||||
$out.= "\t//The Associations below have been created with all possible keys, those that are not needed can be removed\n";
|
||||
}
|
||||
|
||||
if (!empty($associations['belongsTo'])) {
|
||||
$out .= "\tvar \$belongsTo = array(\n";
|
||||
|
||||
|
|
Loading…
Reference in a new issue