Yii Framework Forum: Bug? Scenario Always Set To 'update' After Save. - Yii Framework Forum

Jump to content

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

Bug? Scenario Always Set To 'update' After Save. Rate Topic: -----

#1 User is offline   Sarke 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 52
  • Joined: 25-October 10

Posted 25 September 2012 - 07:42 PM

I understand the logic that the default scenario on new models is 'insert' and the default on existing models is 'update'. However, I am setting a different scenario manually, but after saveing it still gets set to 'update'.

Is this intended behaviour? Maybe just have it set it as 'update' only if the scenario is 'insert' but leave it if it's something else (i.e. manually set). Thoughts?
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