hey,
i need an addcondition if a special GET param is set.
if (Yii::app()->getRequest()->getQuery('skill')) {
$criteria->with = 'skilllist';
$criteria->together = true;
$criteria->addCondition("skilllist.name = :skill", "AND");
$criteria->params = array(":skill" => Yii::app()->getRequest()->getQuery('skill'));
}
if i test this with the get parameter ‘c++’ my trace in the logg file shows me:
Bound with :skill='c '
it seems AR deletes those two ++.
why?