paulbeng Posted April 8, 2018 Share Posted April 8, 2018 Hi, How I can delete the supplier from product_supplier table by id_product and id_supplier. I am using deleteFromSupplier() method, but with this method disappears all suppliers by id_product selected. Link to comment Share on other sites More sharing options...
selectshop.at Posted April 9, 2018 Share Posted April 9, 2018 You want to empty a table direct on database ? You are coding a script ? Link to comment Share on other sites More sharing options...
paulbeng Posted April 9, 2018 Author Share Posted April 9, 2018 Yes, I'm coding a script. Example: I add a supplier with: $prestaProduct->addSupplierReference($my_product_id = $my_supplier_id, 0, $my_supplier_reference, 0, 1); (attach1) Then, I want remove this one row. (attach1) With deleteFromSupplier() method disappears all suppliers by id_product selected. (attach2) What I can do? I want remove one row (one supplier). (attach1) Thanks Link to comment Share on other sites More sharing options...
paulbeng Posted April 12, 2018 Author Share Posted April 12, 2018 Whatever. Solved with DB query. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now