You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed the documentation, ensured property is inside the table, cleared cache; still the error persists.
CRITICAL06:13:38
request
Uncaught PHP Exception Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException: "Can't get a way to read the property "phone_number" in class "...."." at ....\vendor\symfony\property-access\PropertyAccessor.php line 496{ "exception": {} }
I do not understand, what is the issue? I`m using Symfony 5.3.10.
The text was updated successfully, but these errors were encountered:
I found the issue, your documentation is flawed. Please update the documentation to reflect the correct entity field name you specified:
use libphonenumber\PhoneNumberFormat;
use Misd\PhoneNumberBundle\Form\Type\PhoneNumberType;
use Symfony\Component\Form\FormBuilderInterface;
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->add('phoneNumber', PhoneNumberType::class, array('default_region' => 'GB', 'format' => PhoneNumberFormat::NATIONAL));
}
Hi,
I followed the documentation, ensured property is inside the table, cleared cache; still the error persists.
I do not understand, what is the issue? I`m using Symfony 5.3.10.
The text was updated successfully, but these errors were encountered: