Passage en Namespace et tous les tests fonctionnels OK
This commit is contained in:
@@ -1647,10 +1647,10 @@ class Dblayeroo
|
||||
if (! is_object ($object))
|
||||
$this->DBException ("Invalid setForeignObj parameter: not an object");
|
||||
if (! is_subclass_of ($object, __CLASS__) &&
|
||||
get_class ($object) !== "dblayeroo" &&
|
||||
get_class ($object) !== __NAMESPACE__."\dblayeroo")
|
||||
get_class ($object) !== "Dblayeroo" &&
|
||||
get_class ($object) !== __NAMESPACE__."\Dblayeroo")
|
||||
$this->DBException (
|
||||
"Invalid object provided to setForeignObj (not dblayeroo object)");
|
||||
"Invalid object provided to setForeignObj (not Dblayeroo object)");
|
||||
if (! isset ($object->table))
|
||||
$this->DBException (
|
||||
"Invalid object provided to setForeignObj (no table defined)");
|
||||
@@ -2098,10 +2098,10 @@ class Dblayeroo
|
||||
if (! is_object ($object))
|
||||
$this->DBException ("Invalid object provided to join (not object)");
|
||||
if (! is_subclass_of ($object, __CLASS__) &&
|
||||
get_class ($object) !== "dblayeroo" &&
|
||||
get_class ($object) !== __NAMESPACE__."\dblayeroo")
|
||||
get_class ($object) !== "Dblayeroo" &&
|
||||
get_class ($object) !== __NAMESPACE__."\Dblayeroo")
|
||||
$this->DBException (
|
||||
"Invalid object provided to join (not dblayeroo object)");
|
||||
"Invalid object provided to join (not Dblayeroo object)");
|
||||
if ($this->dsn !== $object->dsn)
|
||||
$this->DBException (
|
||||
"DSN different : don't support JOIN between databases");
|
||||
|
||||
Reference in New Issue
Block a user