Commit 5e7b3337 authored by KTP95's avatar KTP95

Update dbObject.php

parent 148302e9
...@@ -391,7 +391,7 @@ class dbObject { ...@@ -391,7 +391,7 @@ class dbObject {
* @param string $objectName Object Name * @param string $objectName Object Name
* @param string $key Key for a join from primary object * @param string $key Key for a join from primary object
* @param string $joinType SQL join type: LEFT, RIGHT, INNER, OUTER * @param string $joinType SQL join type: LEFT, RIGHT, INNER, OUTER
* @param string $primaryKey SQL join On Second primaryKey * @param string $primaryKey SQL join On Second primaryKey
* *
* @return dbObject * @return dbObject
*/ */
...@@ -399,7 +399,7 @@ class dbObject { ...@@ -399,7 +399,7 @@ class dbObject {
$joinObj = new $objectName; $joinObj = new $objectName;
if (!$key) if (!$key)
$key = $objectName . "id"; $key = $objectName . "id";
if (!$primaryKey) if (!$primaryKey)
$primaryKey = $joinObj->primaryKey; $primaryKey = $joinObj->primaryKey;
$joinStr = MysqliDb::$prefix . $this->dbTable . ".{$key} = " . $joinStr = MysqliDb::$prefix . $this->dbTable . ".{$key} = " .
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment