mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-06 19:42:41 +00:00
removing the condition and adding actsAs to the default list of merged keys.
This commit is contained in:
parent
afa4dd0dee
commit
22ad6cdca5
1 changed files with 1 additions and 5 deletions
|
@ -675,11 +675,7 @@ class Model extends Object {
|
|||
}
|
||||
|
||||
if (is_subclass_of($this, 'AppModel')) {
|
||||
$merge = array('findMethods');
|
||||
#if (!empty($this->actsAs)) { //Another possible solution
|
||||
if ($this->actsAs !== null && $this->actsAs !== false) {
|
||||
$merge[] = 'actsAs';
|
||||
}
|
||||
$merge = array('actsAs','findMethods');
|
||||
$parentClass = get_parent_class($this);
|
||||
if ($parentClass !== 'AppModel') {
|
||||
$this->_mergeVars($merge, $parentClass);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue