Adhering to coding standards

This commit is contained in:
Kyle Robinson Young 2011-11-30 07:44:11 -08:00
parent 32a3737cca
commit 5876744709
31 changed files with 51 additions and 52 deletions

View file

@ -2136,7 +2136,7 @@ class Model extends Object {
if (in_array($associations[$association], array('belongsTo', 'hasOne'))) {
$validates = $this->{$association}->create($values) && $this->{$association}->validates($options);
$return[$association][] = $validates;
} elseif($associations[$association] === 'hasMany') {
} elseif ($associations[$association] === 'hasMany') {
$validates = $this->{$association}->validateMany($values, $options);
$return[$association] = $validates;
}