pungpoo / giix

Automatically exported from code.google.com/p/giix
0 stars 0 forks source link

Instance of the object model used on $model->search() method #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
On the base file of the model, the search() method creates a new instance of 
the model, instead of using the object already instantiated.

This is a problem because we can not, for example, using scopes and other 
features of the model.

The parameter passed to the construction of the CActiveDataProvider class 
should be  $this, instead of get_class($this).

Original issue reported on code.google.com by thiagota...@gmail.com on 19 May 2011 at 12:51

GoogleCodeExporter commented 8 years ago

Original comment by rodrigo.coelho@gmail.com on 2 Jun 2011 at 11:33

GoogleCodeExporter commented 8 years ago
Fixed by r111.

Original comment by rodrigo.coelho@gmail.com on 2 Jun 2011 at 3:24

GoogleCodeExporter commented 8 years ago
Thanks to the core team members, your suggestion is now implemented in gii, 
too: http://code.google.com/p/yii/source/detail?r=3269

Original comment by rodrigo.coelho@gmail.com on 14 Jun 2011 at 10:04