Active Record Findall With Condition

I just learned how to add condition in the findall function.


$doctors = MasterDoctor::model()->findAll(array("condition"=>"hospitalid = $model->hospitalid"));

Srsly?..

Yessssssssssssssss!!!!!!!!!!!.

I am going to move this to General Discussion. :)

When we say: Tips, Snippets and Tutorials, we mean it.

Best topic ever :lol:

Wow this is great its working, save my day