Merge pull request #377 from shama/2.0

Fix typo on TranslateBehavior error message
This commit is contained in:
Mark Story 2011-12-14 05:04:00 -08:00
commit 102b96f25c

View file

@ -420,7 +420,7 @@ class TranslateBehavior extends ModelBehavior {
foreach (array('hasOne', 'hasMany', 'belongsTo', 'hasAndBelongsToMany') as $type) { foreach (array('hasOne', 'hasMany', 'belongsTo', 'hasAndBelongsToMany') as $type) {
if (isset($model->{$type}[$association]) || isset($model->__backAssociation[$type][$association])) { if (isset($model->{$type}[$association]) || isset($model->__backAssociation[$type][$association])) {
trigger_error( trigger_error(
__d('cake_dev', 'Association %s is already binded to model %s', $association, $model->alias), __d('cake_dev', 'Association %s is already bound to model %s', $association, $model->alias),
E_USER_ERROR E_USER_ERROR
); );
return false; return false;