Added base class for testing ORMRow deriving classes and added a mock implementation...
[lhc/web/wiklou.git] / includes / db / ORMTable.php
index cc84d65..b6e2d52 100644 (file)
@@ -330,7 +330,7 @@ abstract class ORMTable implements IORMTable {
                        $this->getName(),
                        $this->getPrefixedValues( $conditions ),
                        $functionName
-               );
+               ) !== false; // DatabaseBase::delete does not always return true for success as documented...
        }
        
        /**
@@ -437,7 +437,7 @@ abstract class ORMTable implements IORMTable {
                        $this->getPrefixedValues( $values ),
                        $this->getPrefixedValues( $conditions ),
                        __METHOD__
-               );
+               ) !== false; // DatabaseBase::update does not always return true for success as documented...
        }
 
        /**