But when I click on 'Save' button, this error occurs:
Quote
get_class() expects parameter 1 to be object, array given
..\protected\extensions\multimodelform\MultiModelForm.php(457): get_class(array(Telephone, Telephone))
..\protected\extensions\multimodelform\MultiModelForm.php(457): get_class(array(Telephone, Telephone))
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?

Help












