可捕获的致命错误:传递给Doctrine \ DBAL \ Connection :: update()的参数3必须是类型数组,在symfony2 update Action中没有给出

when i take one array it`s working fine but when i take

Catchable Fatal Error: Argument 3 passed to Doctrine\DBAL\Connection::update() must be of the type array, none given, called in D:\wamp\www\JPL\src\Jotun\TeamManagmentBundle\Controller\DefaultController.php on line 180 and defined in D:\wamp\www\JPL\vendor\doctrine\dbal\lib\Doctrine\DBAL\Connection.php line 497

Here is my Controller

  public function updateAction()
 {



    $request = $this->getRequest();
    $company_name = $request->get('company_name');
    $team_name = $request->get('teamname');
    $mobileno = $request->get('mobileno');
    $email = $request->get('email');
    $em = $this->getDoctrine()->getManager();
    $conn = $this->get('database_connection');

    $conn->update('teams',array( 'company_name'=>$company_name,'team_name'=>$team_name,'mobile_no'=>$mobileno,'email_id'=>$email));

    return $this->redirect($this->generateUrl('jotun_teams'));   
 }  

i am not getting it.Thanks In advance

Third element on DBAL update method is needed. It must contains the update criteria in an associative array (field-value). For example:

$conn->update(
    'teams',
     array(     
         'company_name'=> 'NewCompanyName'
         ),
     array(
         'company_name' => 'CurrentCompanyName'
         )
  );