Move column functions helper to table.

Signed-off-by: Toha <tohenk@yahoo.com>
Restructure Doctrine 2 annotation writer.

Signed-off-by: Toha <tohenk@yahoo.com>