{"action":"closed","issue":{"url":"https://api.github.com/repos/kristijanhusak/laravel4-form-builder/issues/1","labels_url":"https://api.github.com/repos/kristijanhusak/laravel4-form-builder/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/kristijanhusak/laravel4-form-builder/issues/1/comments","events_url":"https://api.github.com/repos/kristijanhusak/laravel4-form-builder/issues/1/events","html_url":"https://github.com/kristijanhusak/laravel4-form-builder/issues/1","id":60119939,"number":1,"title":"Removing field from form object, then setting as child of another form, adds field back","user":{"login":"bishopb","id":6844145,"avatar_url":"https://avatars.githubusercontent.com/u/6844145?v=3","gravatar_id":"","url":"https://api.github.com/users/bishopb","html_url":"https://github.com/bishopb","followers_url":"https://api.github.com/users/bishopb/followers","following_url":"https://api.github.com/users/bishopb/following{/other_user}","gists_url":"https://api.github.com/users/bishopb/gists{/gist_id}","starred_url":"https://api.github.com/users/bishopb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bishopb/subscriptions","organizations_url":"https://api.github.com/users/bishopb/orgs","repos_url":"https://api.github.com/users/bishopb/repos","events_url":"https://api.github.com/users/bishopb/events{/privacy}","received_events_url":"https://api.github.com/users/bishopb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-06T15:58:01Z","updated_at":"2015-03-11T14:55:22Z","closed_at":"2015-03-11T14:55:22Z","body":"Essential form:\r\n```\r\n$child = Form::create(...);\r\n$child->remove('removed_field');\r\n\r\n$parent = Form::create(...);\r\n$parent->add('child', 'form', [ 'class' => $child ]);\r\n\r\nform($parent); // yields a form containing removed_field \r\n```\r\n\r\nLooks like ChildFormType::createChildren() line 27 in the `rebuildForm()` call is adding the fields back based on the original form specification.  The docs do seem to be \"class\" oriented, but as objects are accepted, I'm expecting the object state to remain.\r\n"}}