Hello Friends,
If you are working on symfony2 and looking to implement insert query please review the below example and make the changes according:
Open your model/repository file
$sql = "insert into tbl_paymentmethod set pm_m_id =:pm_m_id, pm_vendor_id = :pm_vendor_id";
$params = ['pm_m_id' => $id, 'pm_vendor_id'=>$pm_vendor_id];
return $this->getConn()->executeUpdate($sql, $params);
0 Comment(s)