sonata-project/SonataPageBundle — pull request #123 by kibao (2012-09-20 10:51:32+00:00)
Title: Fixed saving parent page for new page. Get site id form post request.

On saving new page there isn't passed Site object to PageSelectorType, so parent page choices are always empty.
When selected parent page isn't null then form field throws error.
So only posibility is to create new page without parent.

In master branch saving new page doesn't work because of setting slug to null for page without parent in [PageManager](https://github.com/sonata-project/SonataPageBundle/blob/master/Entity/PageManager.php#L110) and form throws

> The URL /' is already associated with another page