Yii Framework Forum: ar->populateRecord() could fallow scenario - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

ar->populateRecord() could fallow scenario Rate Topic: -----

#1 User is offline   ginus 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 29-January 10

Posted 20 July 2011 - 05:01 AM

in populateRecord() function line 5:
$record->setScenario('update');
i think it could be
$s=$this->getScenario();
if(empty($s)) $s='update';
$record->setScenario($s);
then i can easily do finding->form-changing->updating with rules for many ar which come from ar::model()->withScenario('tabUpdate')->findAll().
0

#2 User is offline   MatiH 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 16-October 12

Posted 16 April 2013 - 01:45 AM

What about this feature ? it's very useful
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

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