mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-06-18 20:53:40 +00:00
Adding tests for Validator
This commit is contained in:
parent
324684c14f
commit
ec9966ec6b
9 changed files with 1224 additions and 784 deletions
lib/Cake/Model
|
@ -979,7 +979,8 @@ class Model extends Object implements CakeEventListener {
|
|||
|
||||
if (strpos($assoc, '.') !== false) {
|
||||
list($plugin, $assoc) = pluginSplit($assoc, true);
|
||||
$this->{$type}[$assoc] = array('className' => $plugin . $assoc); } else {
|
||||
$this->{$type}[$assoc] = array('className' => $plugin . $assoc);
|
||||
} else {
|
||||
$this->{$type}[$assoc] = $value;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue