public function getId() { if (!$this->id) { $search = array('[', ']'); $replace = array('.', ':'); $this->setId($this->form->getId() . '__' . str_replace($search, $replace, $this->getName())); } return parent::getId(); }