diff options
author | ctrlaltca <ctrlaltca@gmail.com> | 2016-04-08 11:53:43 +0200 |
---|---|---|
committer | ctrlaltca <ctrlaltca@gmail.com> | 2016-04-08 11:53:43 +0200 |
commit | b4ed61bfeffee3a47e8b313f64cc7436a99cb460 (patch) | |
tree | 4060fa306e48874ec82ec9d840eca46a729682e8 /framework | |
parent | 6b8e6601752b21a8a96c385a5529bbec7bb2b408 (diff) | |
parent | 8a58971e4f9fec9e17a1817de7949326681d8de4 (diff) |
Merge pull request #586 from pradosoft/fix_585
Possible fix for #585
Diffstat (limited to 'framework')
-rw-r--r-- | framework/Data/SqlMap/Statements/TMappedStatement.php | 1 | ||||
-rw-r--r-- | framework/TComponent.php | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/framework/Data/SqlMap/Statements/TMappedStatement.php b/framework/Data/SqlMap/Statements/TMappedStatement.php index 0883564f..abade1b2 100644 --- a/framework/Data/SqlMap/Statements/TMappedStatement.php +++ b/framework/Data/SqlMap/Statements/TMappedStatement.php @@ -919,7 +919,6 @@ class TMappedStatement extends TComponent implements IMappedStatement public function __wakeup() { - parent::__wakeup(); if (is_null($this->_selectQueue)) $this->_selectQueue = array(); } diff --git a/framework/TComponent.php b/framework/TComponent.php index 127b68a3..0752d04c 100644 --- a/framework/TComponent.php +++ b/framework/TComponent.php @@ -555,7 +555,10 @@ class TComponent return isset($args[0])?$args[0]:null; } - throw new TApplicationException('component_method_undefined',get_class($this),$method); + // don't thrown an exception for __magicMethods() or any other weird methods natively implemented by php + if (!method_exists($this, $method)) { + throw new TApplicationException('component_method_undefined',get_class($this),$method); + } } |