Example #1
0
 /**
  * Executes the SQL update statement
  *
  * @param array $data
  * @param int|array $entryId
  * @return bool|int
  */
 public function update(array $data, $entryId)
 {
     return $this->db->executeTransactionalQuery(function () use($data, $entryId) {
         return $this->db->getConnection()->update($this->getTableName(), $data, $this->getIdentifier($entryId));
     });
 }