An ugly workaround to support sonata multilayer collection