insertObject + REPLACE or ON DUPLICATE KEY UPDATE

For Joomla! 3.x Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general

Moderator: ooffick

Forum rules
Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.
Post Reply
sandomatyas
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Mon Jun 19, 2017 10:57 am

insertObject + REPLACE or ON DUPLICATE KEY UPDATE

Post by sandomatyas » Fri Dec 07, 2018 1:07 pm

Hi
I like to use insert/update records with insertObject/updateObject like this: https://docs.joomla.org/Inserting,_Upda ... _an_Object

But sometimes I need a REPLACE or ON DUPLICATE KEY UPDATE version of insertObject
Is it possible to do this somehow simply? I can check it with a select but there should be something more elagant for that.
Like a replaceObject method or a fourth param for insertOjbect()

Post Reply

Return to “Joomla! 3.x Coding”