Yii Framework Forum: Active Record Findall With Condition - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Active Record Findall With Condition findall with condition example Rate Topic: -----

#1 User is offline   Sivanthi 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 21
  • Joined: 14-February 13
  • Location:Nagercoil, Kanya Kumari, Tamilnadu. India

Posted 18 March 2013 - 06:41 AM

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

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

1

#2 User is offline   ORey 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,703
  • Joined: 20-April 09
  • Location:Moscow, Russia

Posted 18 March 2013 - 07:02 AM

Srsly?..
God is real unless declared as integer
0

#3 User is offline   Sivanthi 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 21
  • Joined: 14-February 13
  • Location:Nagercoil, Kanya Kumari, Tamilnadu. India

Posted 19 March 2013 - 01:01 AM

View PostORey, on 18 March 2013 - 07:02 AM, said:

Srsly?..



Yessssssssssssssss!!!!!!!!!!!.
0

#4 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 3,710
  • Joined: 10-October 10
  • Location:Denmark

Posted 19 March 2013 - 01:04 AM

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

When we say: Tips, Snippets and Tutorials, we mean it.
"Less noise - more signal"
0

#5 User is offline   erand 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 136
  • Joined: 10-December 14

Posted 03 March 2015 - 05:04 AM

Best topic ever :lol:
0

#6 User is offline   Bizley 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 923
  • Joined: 29-July 14
  • Location:Wrocław

Posted 03 March 2015 - 05:57 AM

Posted Image
http://bizley.pl ʕ•ᴥ•ʔ
2

#7 User is offline   matz01 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 30
  • Joined: 10-March 15

Posted 02 May 2017 - 09:29 PM

Wow this is great its working, save my day
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users