New answers tagged

1 vote
Accepted

How to use NOW() with DatabaseDriver->insertObject()

I ended up using arrays to compose the sql query, as per this alternative mentioned in the joomla docs, which works fine: $columns = array('update_timestamp'); $values = array('NOW()'); $db = Factory::...
  • 243
3 votes

How to use NOW() with DatabaseDriver->insertObject()

If you are going to insert a row into the database using an object, you are going to need to pass in values that do not leverage SQL functions. insertObject() will treat the object's payload as ...
  • 4,646

Top 50 recent answers are included