function doDelete(PDO $conn = null) {
		$q = clone $this;

		if (!$q->getTable()) {
			throw new RuntimeException('No table specified.');
		}

		$q->setAction(self::ACTION_DELETE);
		return (int) $q->getQuery($conn)->bindAndExecute()->rowCount();
	}
function doDelete(PDO $conn = null) {
		$q = clone $this;

		if (!$q->getTable()) {
			throw new RuntimeException('No table specified.');
		}

		$q->setAction(self::ACTION_DELETE);
		return (int) $q->getQuery($conn)->bindAndExecute()->rowCount();
	}
function doDelete ( PDO $ conn = null ) { $ q = clone $ this ; if ( ! $ q -> getTable ( ) ) { throw new RuntimeException ( 'No table specified.' ) ; } $ q -> setAction ( self :: ACTION_DELETE ) ; return ( int ) $ q -> getQuery ( $ conn ) -> bindAndExecute ( ) -> rowCount ( ) ; }
Executes DELETE query and returns count of
rows deleted.
@return int
@param $conn PDO[optional]
Executes DELETE query and returns count of rows deleted .