i have read this
but, i still cant see how to remove specific part, this is not explicitly written, can some one explain me how ?
a sample of my Doctrine_RawSql
$a = new Doctrine_RawSql();
$a->select('{m.username}, {m.age}, {m.photo_principale_petit_format},{m.photo_principale_grand_format}')->
from('(SELECT * FROM member_user where id > ( SELECT max(id)-15000 as maximum FROM member_user)) as m')->
innerJoin('member_group_history as g ON m.id = g.member_user_id')->
where('g.old_member_group_id = ?', 7)->
andWhere('m.is_visible = ?', 1)->
andWhere('m.sexe = ?', $this->getSexeRecherche())->
andWhere('m.age >= ?', $this->getMinAgeSearch())->
andWhere('m.age <= ?', $this->getMaxAgeSearch())->
andWhereIn('m.member_group_id', array(10,11))->
andWhere('g.created_at >= ?', date("Y-m-d H:i:s",strtotime("- 20 weeks")))->
andWhere('g.created_at <= ?', date("Y-m-d H:i:s",strtotime("now")))->
limit($limit)->
addComponent('m', 'MemberUser m');
in fact i just want to test if my query count return enough result, and remove specific predicates if not .