Always use parenthesis for top level node.

Signed-off-by: Toha <tohenk@yahoo.com>
Fix Doctrine 2 tinyint mapping (now as smallint).

Signed-off-by: Toha <tohenk@yahoo.com>
Doctrine 2 Annotation support for composite foreign keys.

Sync to commit 0001dbd33067464f3f21b87794435aec34ac04d0.

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