I’m trying to figure out the whole thing of scenario. It is quite obvious when you mess with rules and controller logics, but I’m missing the point when it comes to some automated model generation.
It is the case of using the Model::model()->find* methods. Well, when I’ll insert a record and create a new Model(‘insert’) it is very strait-fw. But when you ask to find an PK and it returns model->scenario = ‘update’ scares me a bit.
Till now I’ve seen two ‘self-implemented’ model scenarios (update and insert). Is there more?
In fact, I’ve found the whole thing quite strange. I love rules, but this sort of ‘don’t know whats happened’ freaks me. This feeling may be the lack of complete documentation on the matter or the complexity of AR.
Someone can pull out some thoughts and try to clear my mind of this darkness?