Example #1
0
 /**
  * Insert a row if a matching row doesn't exists.
  * @param string $table. The table to insert into in the form '*PREFIX*tableName'
  * @param array $input. An array of fieldname/value pairs
  * @return bool The return value from execute()
  */
 public function insertIfNotExist($table, $input)
 {
     return $this->adapter->insertIfNotExist($table, $input);
 }
Example #2
0
 /**
  * Insert a row if the matching row does not exists.
  *
  * @param string $table The table name (will replace *PREFIX* with the actual prefix)
  * @param array $input data that should be inserted into the table  (column name => value)
  * @param array|null $compare List of values that should be checked for "if not exists"
  *				If this is null or an empty array, all keys of $input will be compared
  *				Please note: text fields (clob) must not be used in the compare array
  * @return int number of inserted rows
  * @throws \Doctrine\DBAL\DBALException
  */
 public function insertIfNotExist($table, $input, array $compare = null)
 {
     return $this->adapter->insertIfNotExist($table, $input, $compare);
 }
Example #3
0
 /**
  * Release a previous acquired lock again
  *
  * @since 9.1.0
  */
 public function unlockTable()
 {
     $this->adapter->unlockTable();
     $this->lockedTable = null;
 }