I am creating a form like this:

```
foreach ($users as $user) {
    $builder->add('user_' . $user->getId(), NumberType::class, [
       'label' => $user->__toString(),
       'required' => false,
       'mapped' => false,
       'constraints' => [...],
    ]);
}

```

In twig I want to display the form in a table:

```
<tbody>
    {% for user in users %}
    {% set userId = 'user_' ~ user.getID() %}
        <tr>
            <td>{{ form_label(form.userId) }}</td>
            <td>
                {{ form_widget(form.userId) }}
            </td>
        </tr>
    {% endfor %}
 </tbody>

```

but I get error:

> 
> Neither the property "userId" nor one of the methods "userId()", "getuserId()"/"isuserId()" or "\_\_call()" exist and have public access in class "Symfony\Component\Form\FormView".
> 
> 
> 

How can I go about to solve this problem ?