Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How to use module to delete record in database? 
 
Ryan Sun _Kuafu
Guru
 
Total Posts:  317
Joined:  2008-11-14
FL
 

Right now I can use $model_color->setId($id)->delete() to delete a record, but I don’t want to delete by pk, I want to have some customized where clause to delete, so how to write that code? thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
Ryan Sun _Kuafu
Guru
 
Total Posts:  317
Joined:  2008-11-14
FL
 

another question, as $module->setData($data)->save() will do update, which function do insert?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Ryan Sun _Kuafu
Guru
 
Total Posts:  317
Joined:  2008-11-14
FL
 

Oh, so many trouble with module today.
Dose anybody know when $module -> save() is called , how magento know it should be update or insert?
Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
inthewoods
Sr. Member
 
Avatar
Total Posts:  103
Joined:  2008-07-11
Carson, Wa.
 

have you seen this: http://www.magentocommerce.com/boards/viewthread/2311/

 
Magento Community Magento Community
Magento Community
Magento Community
 
george_it
Jr. Member
 
Total Posts:  3
Joined:  2011-03-27
 

Hello,

I am George and I’m writing on behalf of CameraAccess.com’s I.T Department.

I have been asked to reply to some of your posts and ask a couple of new questions.

The CEO, Paul has requested that we take a Company off of our Database and wondered if anyone could help?

Many Thanks,

George.IT at CameraAccess.com

If you are interest then why not visit [url=http://www.cameraaccess.com]http://www.cameraaccess.com [/url]. We have some new Zeiss CP.2 Lenses.

Image Attachments
logo7.jpg
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top