Multimodelform Error On Update Saving

I put down the code as wrote on the extension code, and when I open the update form it shows multiple rows correctly, and it is possible to add new rows as expected.

But when I click on ‘Save’ button, this error occurs:

get_class function takes on input an array of two Telephone classes insted of a single Telephone class.




...

public function initItems(&$validatedItems, &$deleteItems, $masterValues = array(), $formData = null)

447     {

448         if (!isset($formData))

449             $formData = $_POST;

450 

451         $result = true;

452         $newItems = array();

453 

454         $validatedItems = array(); //bugfix: 1.0.2

455         $deleteItems = array();

456 

457         [b]$modelClass = get_class($this->model);[/b]

458 

459         if (!isset($formData) || empty($formData[$modelClass]))

460             return true;

...



Someone knows what cause this error?