public static function deleteWhere (string $column, array $operatorValue, string $joinOperator="AND") : bool
	{
		$joinOperator 	= static::validateOperator($joinOperator, "AND");
		$expression 	= static::generateValue($column, $operatorValue, $joinOperator);
		$sqlQuery  		= "DELETE FROM ".static::$tableName." WHERE {$column} {$expression}";
        $dbObject  		= Database::getInstance();
		$dbObject->query($sqlQuery);
		static::$affectedRows = $dbObject->affectedRows();
		return ($dbObject->affectedRows() > 0) ? TRUE : FALSE;
	}
public static function deleteWhere (string $column, array $operatorValue, string $joinOperator="AND") : bool
	{
		$joinOperator 	= static::validateOperator($joinOperator, "AND");
		$expression 	= static::generateValue($column, $operatorValue, $joinOperator);
		$sqlQuery  		= "DELETE FROM ".static::$tableName." WHERE {$column} {$expression}";
        $dbObject  		= Database::getInstance();
		$dbObject->query($sqlQuery);
		static::$affectedRows = $dbObject->affectedRows();
		return ($dbObject->affectedRows() > 0) ? TRUE : FALSE;
	}
public static function deleteWhere ( string $ column , array $ operatorValue , string $ joinOperator = "AND" ) : bool { $ joinOperator = static :: validateOperator ( $ joinOperator , "AND" ) ; $ expression = static :: generateValue ( $ column , $ operatorValue , $ joinOperator ) ; $ sqlQuery = "DELETE FROM " . static :: $ tableName . " WHERE {$column} {$expression}" ; $ dbObject = Database :: getInstance ( ) ; $ dbObject -> query ( $ sqlQuery ) ; static :: $ affectedRows = $ dbObject -> affectedRows ( ) ; return ( $ dbObject -> affectedRows ( ) > 0 ) ? TRUE : FALSE ; }
Delete a record from the database where a given column is equal to the given value
@param string $column
@param array $operatorValue
@param string $joinOperator
@return bool
Delete a record from the database where a given column is equal to the given value