public function setForm($form) { foreach ($this->children as $f) { if (is_object($f)) { $f->setForm($form); } } parent::setForm($form); return $this; }