final public static function findBySql (string $sql) : array
	{
        $dbObject 		= Database::getInstance();
		$resultSet 		= $dbObject->query($sql);
		$objectArray 	= [];
		while ($row = Database::fetchAssoc($resultSet))
		{
			$objectArray[] = static::instantiate($row);
		}
		return $objectArray;
	}
final public static function findBySql (string $sql) : array
	{
        $dbObject 		= Database::getInstance();
		$resultSet 		= $dbObject->query($sql);
		$objectArray 	= [];
		while ($row = Database::fetchAssoc($resultSet))
		{
			$objectArray[] = static::instantiate($row);
		}
		return $objectArray;
	}
final public static function findBySql ( string $ sql ) : array { $ dbObject = Database :: getInstance ( ) ; $ resultSet = $ dbObject -> query ( $ sql ) ; $ objectArray = [ ] ; while ( $ row = Database :: fetchAssoc ( $ resultSet ) ) { $ objectArray [ ] = static :: instantiate ( $ row ) ; } return $ objectArray ; }
Returns each row as objects in an associative array
@param string $sql
@return array
Returns each row as objects in an associative array