yiisoft/yii2 — pull request #640 by Agrumas (2013-07-19 17:57:27+00:00)
Title: ActiveRecords functions to work with tabular data input

I don't like idea that before populating data I must have models. It requests loading existing and creating new. So I wrote some functions (ActiveRecord::populate(), saveMultiple() and findAllByPk()) to make tabular data update very simple.
```php
if ($post->load($_POST) && $post>save()) {
$populatedTags = PostTag::populate($_POST, array(
'scenario' => 'create',
'post_id' => $post->id,
), 'update');
$status = PostTag::saveMultiple($populatedTags);
}
```
Working example is included basic app site/post, tables structure is in apps\basic\data\example.sql (just noticed that i have left foreign key constraint to users table:) )