GS_DataObject overrides DB_DataObject insert() too
This commit is contained in:
parent
06503cc11b
commit
50070c9b0a
@ -137,6 +137,20 @@ class GS_DataObject extends DB_DataObject
|
|||||||
return $res;
|
return $res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// insert calls PEAR::isError from DB_DataObject, so let's make that disappear too
|
||||||
|
public function insert()
|
||||||
|
{
|
||||||
|
// avoid those annoying PEAR::DB strict standards warnings it causes
|
||||||
|
$old = error_reporting();
|
||||||
|
error_reporting(error_reporting() & ~E_STRICT);
|
||||||
|
|
||||||
|
$res = parent::insert();
|
||||||
|
|
||||||
|
// reset
|
||||||
|
error_reporting($old);
|
||||||
|
return $res;
|
||||||
|
}
|
||||||
|
|
||||||
// DB_DataObject's joinAdd calls DB_DataObject::factory explicitly, so our factory-override doesn't work
|
// DB_DataObject's joinAdd calls DB_DataObject::factory explicitly, so our factory-override doesn't work
|
||||||
public function joinAdd($obj = false, $joinType='INNER', $joinAs=false, $joinCol=false)
|
public function joinAdd($obj = false, $joinType='INNER', $joinAs=false, $joinCol=false)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user