mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Remove PHP4 code from dynamic call, and change call__ to __call.
This commit is contained in:
parent
b65395c155
commit
e0534a7a70
1 changed files with 1 additions and 4 deletions
|
@ -491,7 +491,7 @@ class Model extends Overloadable {
|
|||
* @param array $params Parameters for the method.
|
||||
* @return mixed Whatever is returned by called method
|
||||
*/
|
||||
protected function call__($method, $params) {
|
||||
public function __call($method, $params) {
|
||||
$result = $this->Behaviors->dispatchMethod($this, $method, $params);
|
||||
|
||||
if ($result !== array('unhandled')) {
|
||||
|
@ -500,9 +500,6 @@ class Model extends Overloadable {
|
|||
$db =& ConnectionManager::getDataSource($this->useDbConfig);
|
||||
$return = $db->query($method, $params, $this);
|
||||
|
||||
if (!PHP5) {
|
||||
$this->resetAssociations();
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue