Fix Doctrine nullable attribute.

Signed-off-by: Toha <tohenk@yahoo.com>
Do not ignoring self referencing relation.

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