Revision #6 was created by yiqing95 on Dec 3, 2011, 4:08:53 AM.
add usage example for relation querying
Content
[...]
* you can specify an alias here which can be the current ActiveRecord( normally is 't') or relation Ar 's alias(the relation name)
* @return CActiveRecord
*/
public function between($start,$end,$alias=null)
{
$alias = empty($alias)? $this->getOwner()->getTableAlias(false) : $alias;
if(empty($alias)){
$condition = $this->attrCreateAt.' BETWEEN :start AND :end';
[...]
// ...
}
// with relation query ,the CreateAt is from Comment class. haven't test this funcitonality