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 2 months ago by le_topTips1 comment – viewed 1,492 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.