make getParent() work both in Symphony 2.0 and 2.3