Hello Friends,
If you are looking to use update query with query builder in Symfony2. Please review the below example and make the adjustment accordingly.
$sql = "update tbl_paymentmethod set pm_address = :address, pm_status = :status, updated_at = :updated_at WHERE pm_m_id = :model_id";
$params = ['model_id' => $id, 'address' => $email,'status' => $status, 'updated_at' => date('Y-m-d h:i:s')];
return $this->getConn()->executeUpdate($sql, $params);
0 Comment(s)