sonata-project/SonataPageBundle — pull request #141 by sepetrov (2012-12-20 17:12:33+00:00)
Title: Fix sonata page block children pages

Hey,

Depending on the configuration of the bundle it is possible to trigger an exception when __\Sonata\PageBundle\CmsManager\CmsManagerSelectorInterface__ instance tries to fetch the page setting and there is not site available. This is the case with the sandbox application where all admin URLs are being ignored.
I believe it is save(er) to refer to the page attribute of current block when retrieving the site.

Cheers,
Stan