The method "isInternational" in class "App\Entity\Conference" requires 0 arguments, but should accept only 1.. #54885
Replies: 4 comments 12 replies
-
Does your |
Beta Was this translation helpful? Give feedback.
-
I have the same error. Changing |
Beta Was this translation helpful? Give feedback.
-
So this looks like a bug with the Maker that generates these files, as I have this problem, and I generated these using the maker. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the feedback, I solved my problem. The subject is being corrected ? |
Beta Was this translation helpful? Give feedback.
-
Having followed the instructions up to https://symfony.com/doc/6.4/the-fast-track/en/9-backend.html
You can now add/modify/delete conferences directly from the admin backend. Play with it and add at least one conference.
I have encountered a problem. In the attempt to save first conference I got an error, stack trace is below. The method concerned is this:
any advice is appreciated.
Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException:
The method "isInternational" in class "App\Entity\Conference" requires 0 arguments, but should accept only 1..
at C:\PROJECTS\guestbook\vendor\symfony\property-access\PropertyAccessor.php:539
at Symfony\Component\PropertyAccess\PropertyAccessor->writeProperty(array(object(Conference)), 'isInternational', false)
(C:\PROJECTS\guestbook\vendor\symfony\property-access\PropertyAccessor.php:120)
at Symfony\Component\PropertyAccess\PropertyAccessor->setValue(object(Conference), object(PropertyPath), false)
(C:\PROJECTS\guestbook\vendor\symfony\form\Extension\Core\DataAccessor\PropertyPathAccessor.php:75)
at Symfony\Component\Form\Extension\Core\DataAccessor\PropertyPathAccessor->setValue(object(Conference), false, object(Form))
(C:\PROJECTS\guestbook\vendor\symfony\form\Extension\Core\DataAccessor\ChainAccessor.php:48)
at Symfony\Component\Form\Extension\Core\DataAccessor\ChainAccessor->setValue(object(Conference), false, object(Form))
(C:\PROJECTS\guestbook\vendor\symfony\form\Extension\Core\DataMapper\DataMapper.php:73)
at Symfony\Component\Form\Extension\Core\DataMapper\DataMapper->mapFormsToData(object(RecursiveIteratorIterator), object(Conference))
(C:\PROJECTS\guestbook\vendor\symfony\form\Form.php:551)
at Symfony\Component\Form\Form->submit(array(), true)
(C:\PROJECTS\guestbook\vendor\symfony\form\Extension\HttpFoundation\HttpFoundationRequestHandler.php:110)
at Symfony\Component\Form\Extension\HttpFoundation\HttpFoundationRequestHandler->handleRequest(object(Form), object(Request))
(C:\PROJECTS\guestbook\vendor\symfony\form\Form.php:420)
at Symfony\Component\Form\Form->handleRequest(object(Request))
(C:\PROJECTS\guestbook\vendor\easycorp\easyadmin-bundle\src\Controller\AbstractCrudController.php:305)
at EasyCorp\Bundle\EasyAdminBundle\Controller\AbstractCrudController->new(object(AdminContext))
(C:\PROJECTS\guestbook\vendor\symfony\http-kernel\HttpKernel.php:181)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
(C:\PROJECTS\guestbook\vendor\symfony\http-kernel\HttpKernel.php:76)
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
(C:\PROJECTS\guestbook\vendor\symfony\http-kernel\Kernel.php:197)
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
(C:\PROJECTS\guestbook\vendor\symfony\runtime\Runner\Symfony\HttpKernelRunner.php:35)
at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
(C:\PROJECTS\guestbook\vendor\autoload_runtime.php:29)
at require_once('C:\PROJECTS\guestbook\vendor\autoload_runtime.php')
(C:\PROJECTS\guestbook\public\index.php:5)
Beta Was this translation helpful? Give feedback.
All reactions