Looking for software development internships? Hackr.io is hiring!

CakePHP Discussion Forums

There's no such thing as a stupid question. Ask. Discuss. Learn.

CakePHP 2.x - Does the save() method behave like this?

I have a simple dynamic form on one of my views. When I save this form I want to update rows if the ID already exists in the DB, and where no ID is given, I want to insert a tow. Omegle Appvalley https://pnrstatus.vip/

Can I do this by providing a single data object to the save() method, with some entries having an id and other without, and will the save() method then figure out what to do? Or do I have to do two separate calls?

Aplam 8 months ago
  • Whitelisted Links