Yii2 Changes - Some General Questions

Hi All,

Just wondering about 2 things:

  1. What is the benefit of using link/unlink on the model? It seems just as easy to just set the field on the model directly?

  2. Why does gii now generate separate model files for the model and the search? The controller actions generated by default does not use the search class when loading for creation and updating so I would need to change those generated actions (or of course create my own template), because the rules is in the search class … just curious as to why this was done and what the benefit of this is?

In general, I like the Yii2 changes … great improvement on an already good framework.