diff --git a/cake/libs/model/model.php b/cake/libs/model/model.php index 48f6844c6..c4ea13bb2 100644 --- a/cake/libs/model/model.php +++ b/cake/libs/model/model.php @@ -590,7 +590,7 @@ class Model extends Overloadable { } $this->alias[$assoc] = $this->{$assoc}->table; - $this->tableToModel[$this->{$assoc}->table] = $assoc; + $this->tableToModel[$this->{$assoc}->table] = $className; $this->modelToTable[$assoc] = $this->{$assoc}->table; } /**