How to use Multiple instances of the same model in the same form

Comparing #7 with #8

Content

[...]
// Set attribute for user data
$model->attributes=$_POST['User'];

// Validate all three model
$valid=$addressModel_1->validate();
        $valid=$addressModel_2->validate() && $valid;         $valid=$model->validate() && $valid;

if($valid)
[...]
// Validate all three model
$valid=$addressModel_1->validate();
        $valid=$addressModel_2->validate() && $valid;         $valid=$model->validate() && $valid;

if($valid)
{
$addressModel_1->save();
$addressModel_2->save();
[...]