I know that a lot of time has passed since the answer, but perhaps if someone is looking for it, it can be useful.
I have two forms: user_form and company_form, and the view is executed in the same controller function. I can know which form was submitted using the following code:
if ($request->getMethod() == 'POST') { $data = $request->request->all(); if (isset($data['user_form']))
The company_form profile will go through else.
source share