/**
  * @param AppForm
  */
 protected function detached($parent)
 {
     if ($parent instanceof AppForm) {
         $this->formIsPrepared = false;
     }
     parent::detached($parent);
 }