symfony1doctrinesymfony-1.4sfdoctrineguard

Error while adding a new group in sfDoctrineGuardPlugin


i am new to symfony.i am using symfony1.4 and Doctrine . While adding a new group in sfDoctrineGuardPlugin i am getting this error The item has not been saved due to some errors.i don't know why i am getting this error. how to find these errors? Any one please help me...
thanks in advance


Solution

  • i found the problem because my $form->isValid() returns false to see the errors i used the following code

    <?php
            $errors = $form->getErrorSchema()->getErrors();
            if (count($errors) > 0)
            echo 'List of Errors:' . '<br>;
            {
                foreach ($errors as $name => $error)
                {
                echo $name . ': ' . $error . '<BR>';
                }
            }
     ?>