public static function findByColumn (string $column, array $operatorValue, string $joinOperator="AND", int $limit=1)
	{
		$joinOperator 	= static::validateOperator($joinOperator, "AND");
		$expression 	= static::generateValue($column, $operatorValue, $joinOperator);
		$sqlQuery  		= "SELECT * FROM ".static::$tableName." WHERE {$column} {$expression}";
		return static::limitFindBySql($sqlQuery, $limit);
	}
public static function findByColumn (string $column, array $operatorValue, string $joinOperator="AND", int $limit=1)
	{
		$joinOperator 	= static::validateOperator($joinOperator, "AND");
		$expression 	= static::generateValue($column, $operatorValue, $joinOperator);
		$sqlQuery  		= "SELECT * FROM ".static::$tableName." WHERE {$column} {$expression}";
		return static::limitFindBySql($sqlQuery, $limit);
	}
public static function findByColumn ( string $ column , array $ operatorValue , string $ joinOperator = "AND" , int $ limit = 1 ) { $ joinOperator = static :: validateOperator ( $ joinOperator , "AND" ) ; $ expression = static :: generateValue ( $ column , $ operatorValue , $ joinOperator ) ; $ sqlQuery = "SELECT * FROM " . static :: $ tableName . " WHERE {$column} {$expression}" ; return static :: limitFindBySql ( $ sqlQuery , $ limit ) ; }
Find where a given column is equal to a given value and return the first occurence as the first element in the array.
@param string $column
@param array $operatorValue
@param string $joinOperator
@param int $limit
@return mixed
Find where a given column is equal to a given value and return the first occurence as the first element in the array .