summaryrefslogtreecommitdiff
path: root/framework/Data/ActiveRecord/TActiveRecord.php
diff options
context:
space:
mode:
authorwei <>2006-12-03 22:26:04 +0000
committerwei <>2006-12-03 22:26:04 +0000
commit503cdec992e78bf4180fa720800b9d3a3bc551e2 (patch)
tree0a53819ddc430e5224583dc9efa403f320eeb814 /framework/Data/ActiveRecord/TActiveRecord.php
parentbf8caefce718cc38ccfd121d9cd718f42021b2b9 (diff)
Allow TDbConnection and TDbCommand to be serialized.
Diffstat (limited to 'framework/Data/ActiveRecord/TActiveRecord.php')
-rw-r--r--framework/Data/ActiveRecord/TActiveRecord.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/framework/Data/ActiveRecord/TActiveRecord.php b/framework/Data/ActiveRecord/TActiveRecord.php
index fd49e413..4969da09 100644
--- a/framework/Data/ActiveRecord/TActiveRecord.php
+++ b/framework/Data/ActiveRecord/TActiveRecord.php
@@ -3,6 +3,9 @@
* TActiveRecord class file.
*
* @author Wei Zhuo <weizhuo[at]gmail[dot]com>
+ * @link http://www.pradosoft.com/
+ * @copyright Copyright &copy; 2005-2007 PradoSoft
+ * @license http://www.pradosoft.com/license/
* @version $Id$
* @package System.Data.ActiveRecord
*/
@@ -373,10 +376,10 @@ abstract class TActiveRecord extends TComponent
{
if($findOne = substr(strtolower($method),0,6)==='findby')
$condition = $method[6]==='_' ? substr($method,7) : substr($method,6);
- else if(substr(strtolower($method,0,9)==='findallby'))
+ else if(substr(strtolower($method),0,9)==='findallby')
$condition = $method[9]==='_' ? substr($method,10) : substr($method,9);
else
- throw new TActiveRecordException('ar_invalid_finder_method',$method);
+ return null;//throw new TActiveRecordException('ar_invalid_finder_method',$method);
$fields = array();
foreach(preg_split('/and|_and_/i',$condition) as $field)
$fields[] = $field.' = ?';