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
public function buildForm(FormBuilder $builder, array $options)
{
$builder
->add('text')
Next exception is thrown when trying to guess type:
[Semantical Error] The annotation "@table" in class Entity\MyEntity was never imported. Did you maybe forget to add a "use" statement for this annotation?
If you put:
->add('text', 'textarea')
exception is not thrown
The text was updated successfully, but these errors were encountered:
Fix your annotations. You need to import the annotation class through a use statement (or the parent namespace and changing it to @ORM\Table() if you prefer avoiding having lots of the use statements)
It is not directly related to the form. It is simply that the guesser is a place triggering the annotation reader.
If field type isn't set in Form/MyEntityType.php:
Next exception is thrown when trying to guess type:
[Semantical Error] The annotation "@table" in class Entity\MyEntity was never imported. Did you maybe forget to add a "use" statement for this annotation?
If you put:
->add('text', 'textarea')
exception is not thrown
The text was updated successfully, but these errors were encountered: