Active Record Findall With Condition


(Sivanthi071) #1

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


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


(Angel De La Noche) #2

Srsly?..


(Sivanthi071) #3

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


(Jacob Moen) #4

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

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


(Erandbraho) #5

Best topic ever :lol:


(Pawel) #6


(Mathew Magante) #7

Wow this is great its working, save my day