From 503cdec992e78bf4180fa720800b9d3a3bc551e2 Mon Sep 17 00:00:00 2001 From: wei <> Date: Sun, 3 Dec 2006 22:26:04 +0000 Subject: Allow TDbConnection and TDbCommand to be serialized. --- framework/Data/ActiveRecord/TActiveRecord.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'framework/Data/ActiveRecord/TActiveRecord.php') 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 + * @link http://www.pradosoft.com/ + * @copyright Copyright © 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.' = ?'; -- cgit v1.2.3