Created WEEKDAY function.

Modified from DoctrineExtensions\Query\Mysql\Year.