Wiki

Articles tagged with "defaults", sorted by commentsX
Displaying 1-1 of 1 result(s).

Search scenario (CGridView, etc.): avoid default values from database as search condition.

Created about a year ago by le_topTips1 comment – viewed 4,526 times – ( +1 ) – version 1.1
Yii has a neat "trick" that will assign default values to new CActiveRecords. When performing a search() though, this is pretty annoying as they automatically apply as filter values.