Haehnchen / idea-php-symfony2-plugin

IntelliJ IDEA / PhpStorm Symfony Plugin
https://plugins.jetbrains.com/plugin/7219
MIT License
913 stars 137 forks source link

[Form] Add type provider for getData #647

Open Haehnchen opened 8 years ago

Haehnchen commented 8 years ago

Following code should be simplified

        if ($form->isSubmitted() && $form->isValid()) {
            /** @var Comment $comment */
            $comment = $form->getData();
        $resolver->setDefaults(array(
            'data_class' => 'AppBundle\Entity\Comment',
        ));
predakanga commented 4 years ago

This would be a killer feature if it's doable!