(minor) Make ORMTable handle failed queries nicely.
authordaniel <daniel.kinzler@wikimedia.de>
Wed, 5 Dec 2012 16:10:31 +0000 (17:10 +0100)
committerdaniel <daniel.kinzler@wikimedia.de>
Mon, 7 Jan 2013 13:14:56 +0000 (14:14 +0100)
commit4f15b61efebd3bde3d26dae321002aa6196a3580
treea0a259b8c3def42524f7c909b1a862be7210d582
parente5e3aa90e698f67e5447b5fd93e5c3c379483a73
(minor) Make ORMTable handle failed queries nicely.

Database::select will return false if a query fails and the DB object
is set to "ignore errors" mode. ORMTable now detect this and throw
a DBQueryError, overriding the ignore errors mode.

This change also adds a dummy implementation for ORMTable to ORMTableTest,
so tests can be run on the base implementation.

Change-Id: I5d87295626c0800c38f807d19becb312ba7cc956
includes/db/IORMTable.php
includes/db/ORMTable.php
tests/phpunit/includes/db/ORMTableTest.php