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 @@
- + \
-
+
- + Rundiz
-
+
- + NestedSet
-
+
@@ -581,7 +581,7 @@

Parameters

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'),
 )
@@ -628,7 +628,8 @@

Parameters

array $where -

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 @@ 


Documentation is powered by phpDocumentor and authored - on September 18th, 2020 at 20:46. + on September 18th, 2020 at 23:46.
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 @@
- + \
-
+
- + Rundiz
-
+
- + NestedSet
-
+
@@ -232,7 +232,7 @@

Tags

version - 1.0.0 + 1.0.1 @@ -308,7 +308,7 @@


Documentation is powered by phpDocumentor and authored - on September 18th, 2020 at 20:46. + on September 18th, 2020 at 23:46.
diff --git a/.wiki/apidoc/graphs/class.html b/.wiki/apidoc/graphs/class.html index f678625..3b5abc2 100644 --- a/.wiki/apidoc/graphs/class.html +++ b/.wiki/apidoc/graphs/class.html @@ -161,7 +161,7 @@


Documentation is powered by phpDocumentor and authored - on September 18th, 2020 at 20:46. + on September 18th, 2020 at 23:46.
diff --git a/.wiki/apidoc/index.html b/.wiki/apidoc/index.html index 7f94cb6..edb69e6 100644 --- a/.wiki/apidoc/index.html +++ b/.wiki/apidoc/index.html @@ -96,28 +96,28 @@
- + \
-
+
- + Rundiz
-
+
- + NestedSet
-
+
@@ -219,7 +219,7 @@


Documentation is powered by phpDocumentor and authored - on September 18th, 2020 at 20:46. + on September 18th, 2020 at 23:46.
diff --git a/.wiki/apidoc/namespaces/Rundiz.NestedSet.html b/.wiki/apidoc/namespaces/Rundiz.NestedSet.html index f3c167f..568c71a 100644 --- a/.wiki/apidoc/namespaces/Rundiz.NestedSet.html +++ b/.wiki/apidoc/namespaces/Rundiz.NestedSet.html @@ -96,28 +96,28 @@
- + \
-
+
- + Rundiz
-
+
- + NestedSet
-
+
@@ -224,7 +224,7 @@


Documentation is powered by phpDocumentor and authored - on September 18th, 2020 at 20:46. + on September 18th, 2020 at 23:46.
diff --git a/.wiki/apidoc/namespaces/Rundiz.html b/.wiki/apidoc/namespaces/Rundiz.html index c3cf4b9..7980b96 100644 --- a/.wiki/apidoc/namespaces/Rundiz.html +++ b/.wiki/apidoc/namespaces/Rundiz.html @@ -96,28 +96,28 @@
- + \
-
+
- + Rundiz
-
+
- + NestedSet
-
+
@@ -221,7 +221,7 @@


Documentation is powered by phpDocumentor and authored - on September 18th, 2020 at 20:46. + on September 18th, 2020 at 23:46.
diff --git a/.wiki/apidoc/namespaces/default.html b/.wiki/apidoc/namespaces/default.html index 74772fb..9ad1034 100644 --- a/.wiki/apidoc/namespaces/default.html +++ b/.wiki/apidoc/namespaces/default.html @@ -96,28 +96,28 @@
- + \
-
+
- + Rundiz
-
+
- + NestedSet
-
+
@@ -219,7 +219,7 @@


Documentation is powered by phpDocumentor and authored - on September 18th, 2020 at 20:46. + on September 18th, 2020 at 23:46.
diff --git a/.wiki/apidoc/reports/deprecated.html b/.wiki/apidoc/reports/deprecated.html index 8a4b4d5..9afd92d 100644 --- a/.wiki/apidoc/reports/deprecated.html +++ b/.wiki/apidoc/reports/deprecated.html @@ -151,7 +151,7 @@


Documentation is powered by phpDocumentor and authored - on September 18th, 2020 at 20:46. + on September 18th, 2020 at 23:46.
diff --git a/.wiki/apidoc/reports/errors.html b/.wiki/apidoc/reports/errors.html index 2d911aa..8a2f28e 100644 --- a/.wiki/apidoc/reports/errors.html +++ b/.wiki/apidoc/reports/errors.html @@ -174,7 +174,7 @@


Documentation is powered by phpDocumentor and authored - on September 18th, 2020 at 20:46. + on September 18th, 2020 at 23:46.
diff --git a/.wiki/apidoc/reports/markers.html b/.wiki/apidoc/reports/markers.html index f540ddf..c292739 100644 --- a/.wiki/apidoc/reports/markers.html +++ b/.wiki/apidoc/reports/markers.html @@ -150,7 +150,7 @@


Documentation is powered by phpDocumentor and authored - on September 18th, 2020 at 20:46. + on September 18th, 2020 at 23:46.
diff --git a/src/NestedSet.php b/src/NestedSet.php index 01b40c5..19e3acf 100644 --- a/src/NestedSet.php +++ b/src/NestedSet.php @@ -1,7 +1,7 @@ *
      * 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.
+ * `parent` or `child` is required if there are ambugious error. *
      * array(
      *     'whereString' => '(`parent`.`columnName` = :value1 AND `parent`.`columnName2` = :value2)',