Limit ignored

I have a problem in the following code:

$dataProvider=new CActiveDataProvider('Obra', array(




	$criteria = new CDbCriteria;

	$criteria->limit = 4;

	$criteria->order = 'fechaSubida DESC';





		$this->widget('zii.widgets.CListView', array(




The problem is that the limit propertie of the criteria is ignored. The listView shows all the records when it should show only four. Is this a bug? am I missing something?

This question was asked earlier today. A solution was proposed here.


Thanks a lot…