Should have been association name, not field name.

This commit is contained in:
mark_story 2011-12-30 20:54:26 -05:00
parent b5f918765e
commit c3e9a931d6

View file

@ -394,7 +394,7 @@ class TranslateBehavior extends ModelBehavior {
$field = $key;
$association = $value;
}
if ($field === 'name') {
if ($association === 'name') {
throw new CakeException(
__d('cake_dev', 'You cannot bind a translation named "name".')
);