Hell i have a problem with collecting my Tabular Input i use this code in my collector:
$subfirms = new subfirms();
$subfirm = new subfirm();
$subfirms->attributes = $_POST['subfirms'];
foreach($subfirms as $i=>$subfirm)
{
$subfirm->attributes=$_POST['subfirms'][$i];
$subfirm->validate();
$subfirm->save();
}
i have defined both subfirms and subfirm as class models but still when i try this i get the error 'Attempt to assign property of non-object' on - $subfirm->attributes=$_POST['subfirms'][$i]
Thanks for your help!