alexserver
(Alexserverone)
1
hello there, i’ve looking for default yii scenarios list without succes
do you know which are the default scenarios that yii uses with its models ?
for example, when an AR model is new, which scenario is used ? create ? or insert ?
when an AR record is retrieved by model()->find() which scenario is used ?
kind regards.
seenivasan
(Chellamnivas)
2
When AR model is new, upon construction the scenario is set as "insert".
After successfully inserting a row, the scenario of this instance changes to "update".
This scenario helps to update the record.
I think these are the 2 default scenarios in AR.