Yii Framework Forum: findall array? - Yii Framework Forum

Jump to content

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

findall array? Rate Topic: -----

#1 User is offline   mithereal 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 67
  • Joined: 14-April 10
  • Location:The Radioactive Desert, AZ

Posted 07 May 2010 - 01:20 AM

i need to do a custom findall lookup
findall needs to accept an objects params for the where clause.
something like findall($condition='where name=:params', $params=array(:params=$parent_object->$object->_params);.

$parent_object->$object->_params=array(id=1, name='name),
parent_object->$object2->_params=array(id=2, name='name2),

obviously that doesnt work. so how would i accomplish this.
0

#2 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,359
  • Joined: 12-October 09
  • Location:Croatia

Posted 07 May 2010 - 02:44 AM

I don't understand you actual need, but try with CDbCriteria - http://www.yiiframew...#reading-record
Find more about me.... btw. Do you know your WAN IP?
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