Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid title mremi_contact.form.title_mr, possible values are: mr, mrs #49

Open
oussaka opened this issue Jul 5, 2018 · 0 comments
Open

Comments

@oussaka
Copy link
Contributor

oussaka commented Jul 5, 2018

Error with form submitting

stack trace:

InvalidArgumentException:
Invalid title mremi_contact.form.title_mr, possible values are: mr, mrs

at vendor/mremi/contact-bundle/Mremi/ContactBundle/Model/Contact.php:197
at Mremi\ContactBundle\Model\Contact->setTitle('mremi_contact.form.title_mr')
(vendor/symfony/symfony/src/Symfony/Component/PropertyAccess/PropertyAccessor.php:623)
at Symfony\Component\PropertyAccess\PropertyAccessor->writeProperty(array(object(Contact), object(Contact)), 'title', 'mremi_contact.form.title_mr')
(vendor/symfony/symfony/src/Symfony/Component/PropertyAccess/PropertyAccessor.php:217)
at Symfony\Component\PropertyAccess\PropertyAccessor->setValue(object(Contact), object(PropertyPath), 'mremi_contact.form.title_mr')
(vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/DataMapper/PropertyPathMapper.php:85)
at Symfony\Component\Form\Extension\Core\DataMapper\PropertyPathMapper->mapFormsToData(object(RecursiveIteratorIterator), object(Contact))
(vendor/symfony/symfony/src/Symfony/Component/Form/Form.php:628)
at Symfony\Component\Form\Form->submit(array(), true)
(vendor/symfony/symfony/src/Symfony/Component/Form/Extension/HttpFoundation/HttpFoundationRequestHandler.php:108)
at Symfony\Component\Form\Extension\HttpFoundation\HttpFoundationRequestHandler->handleRequest(object(Form), object(Request))
(vendor/symfony/symfony/src/Symfony/Component/Form/Form.php:498)
at Symfony\Component\Form\Form->handleRequest(object(Request))
(vendor/mremi/contact-bundle/Mremi/ContactBundle/Controller/ContactController.php:100)
at Mremi\ContactBundle\Controller\ContactController->indexAction(object(Request))
(vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:151)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
(vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68)
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
(vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:200)
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
(web/app_dev.php:29)
at require('/var/www/contactsf3/web/app_dev.php')
(vendor/symfony/symfony/src/Symfony/Bundle/WebServerBundle/Resources/router.php:42)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant