Quantcast
Channel: Active questions tagged symfony4 - Stack Overflow
Viewing all articles
Browse latest Browse all 3917

I have username which is type string in entity User, but in form builder i dont have String type. How can i fix that? [closed]

$
0
0
public function buildForm(FormBuilderInterface $builder, array $options)    {        $builder            ->add('username', TextType::class, array('label' => 'Username:  ', 'attr'=>array('class'=>'form-control mb-3')))}

and i get error "Could not load type "App\Form\TextType": class does not exist."


Viewing all articles
Browse latest Browse all 3917

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>