Bug fix for child assign to parent
Merge pull request #305 from japhp/3.0-beta

Bug fix for child assign to parent