mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-02 01:22:37 +00:00
Should have been association name, not field name.
This commit is contained in:
parent
b5f918765e
commit
c3e9a931d6
1 changed files with 1 additions and 1 deletions
|
@ -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".')
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue