Fix renaming a document that is in a children collection. fix #376
Merge pull request #449 from doctrine/checknodename

Fix renaming a document that is in a children collection