public function setFieldCollections($fieldCollections) { foreach ($fieldCollections as $fc) { $this->addFieldCollection($fc['type'], $fc['fieldname']); } return $this; }