Convert word in to the format for a Doctrine table name. Converts 'ModelName' to 'model_name'
string $word Word to tableize:
string $word Tableized word
public static function tableize($word) {
return strtolower(preg_replace('~(?<=\\w)([A-Z])~', '_$1', $word));
}