diff --git a/.wiki/apidoc/classes/Rundiz.NestedSet.NestedSet.html b/.wiki/apidoc/classes/Rundiz.NestedSet.NestedSet.html index 5d1557f..41dea1b 100644 --- a/.wiki/apidoc/classes/Rundiz.NestedSet.NestedSet.html +++ b/.wiki/apidoc/classes/Rundiz.NestedSet.NestedSet.html @@ -144,28 +144,28 @@
Where array structure will be like this.
array( - 'whereString' => '(`parent`.`columnName` = :value1 AND `parent`.`columnName2` = :value2)', + 'whereString' => '(`columnName` = :value1 AND `columnName2` = :value2)', 'whereValues' => array(':value1' => 'lookup value 1', ':value2' => 'lookup value2'), )
Where array structure will be like this.
Where array structure will be like this.
+parent
or child
is required if there are ambugious error.
array( 'whereString' => '(`parent`.`columnName` = :value1 AND `parent`.`columnName2` = :value2)', @@ -1113,7 +1114,7 @@
diff --git a/.wiki/apidoc/files/NestedSet.html b/.wiki/apidoc/files/NestedSet.html index fe2e1f7..852d02a 100644 --- a/.wiki/apidoc/files/NestedSet.html +++ b/.wiki/apidoc/files/NestedSet.html @@ -144,28 +144,28 @@
Documentation is powered by phpDocumentor and authored - on September 18th, 2020 at 20:46. + on September 18th, 2020 at 23:46.
* array( - * 'whereString' => '(`parent`.`columnName` = :value1 AND `parent`.`columnName2` = :value2)', + * 'whereString' => '(`columnName` = :value1 AND `columnName2` = :value2)', * 'whereValues' => array(':value1' => 'lookup value 1', ':value2' => 'lookup value2'), * )* @return boolean Return true on success, false for otherwise. @@ -91,7 +91,6 @@ public function deletePullUpChildren(int $taxonomy_id, array $where = []): bool $sql = 'SELECT `' . $this->idColumnName . '`, `' . $this->parentIdColumnName . '` FROM `' . $this->tableName . '`'; $sql .= ' WHERE `' . $this->idColumnName . '` = :taxonomy_id'; if (isset($where['whereString']) && is_string($where['whereString'])) { - $where['whereString'] = str_replace(['`parent`.', '`child`.'], '', $where['whereString']); $sql .= ' AND ' . $where['whereString']; } $Sth = $this->PDO->prepare($sql); @@ -118,7 +117,6 @@ public function deletePullUpChildren(int $taxonomy_id, array $where = []): bool $sql .= ' SET `' . $this->parentIdColumnName . '` = :parent_id'; $sql .= ' WHERE `' . $this->parentIdColumnName . '` = :taxonomy_id'; if (isset($where['whereString']) && is_string($where['whereString'])) { - $where['whereString'] = str_replace(['`parent`.', '`child`.'], '', $where['whereString']); $sql .= ' AND ' . $where['whereString']; } $Sth = $this->PDO->prepare($sql); @@ -138,7 +136,6 @@ public function deletePullUpChildren(int $taxonomy_id, array $where = []): bool // delete the selected taxonomy ID $sql = 'DELETE FROM `' . $this->tableName . '` WHERE `' . $this->idColumnName . '` = :taxonomy_id'; if (isset($where['whereString']) && is_string($where['whereString'])) { - $where['whereString'] = str_replace(['`parent`.', '`child`.'], '', $where['whereString']); $sql .= ' AND ' . $where['whereString']; } $Sth = $this->PDO->prepare($sql); @@ -165,6 +162,7 @@ public function deletePullUpChildren(int $taxonomy_id, array $where = []): bool * * @param int $taxonomy_id The taxonomy ID to delete. * @param array $where Where array structure will be like this.
* array( * 'whereString' => '(`parent`.`columnName` = :value1 AND `parent`.`columnName2` = :value2)',