{"action":"opened","issue":{"url":"https://api.github.com/repos/nextras/orm/issues/103","labels_url":"https://api.github.com/repos/nextras/orm/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/nextras/orm/issues/103/comments","events_url":"https://api.github.com/repos/nextras/orm/issues/103/events","html_url":"https://github.com/nextras/orm/issues/103","id":102960545,"number":103,"title":"ToArrayConverter shouldn't skip isVirtual items","user":{"login":"insekticid","id":177340,"avatar_url":"https://avatars.githubusercontent.com/u/177340?v=3","gravatar_id":"","url":"https://api.github.com/users/insekticid","html_url":"https://github.com/insekticid","followers_url":"https://api.github.com/users/insekticid/followers","following_url":"https://api.github.com/users/insekticid/following{/other_user}","gists_url":"https://api.github.com/users/insekticid/gists{/gist_id}","starred_url":"https://api.github.com/users/insekticid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/insekticid/subscriptions","organizations_url":"https://api.github.com/users/insekticid/orgs","repos_url":"https://api.github.com/users/insekticid/repos","events_url":"https://api.github.com/users/insekticid/events{/privacy}","received_events_url":"https://api.github.com/users/insekticid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-25T06:38:27Z","updated_at":"2015-08-25T06:38:27Z","closed_at":null,"body":"$row is Nextras Orm Entity\r\n\r\n```\r\n/**\r\n * @property Item        $item {m:1 ItemsRepository}\r\n * @property Type        $type {virtual}\r\n */\r\nclass Log extends Entity\r\n{\r\n\tpublic function getterType() {\r\n\t\treturn $this->item->type;\r\n\t}\r\n}\r\n\r\n```\r\n```\r\n$form = new \\Nette\\Forms\\Container;\r\n$form->addSelect('type');\r\n$form->setDefaults($row->toArray());\r\n```\r\n\r\ndefault value for select name 'type' is empty because of skipping virtual properties\r\n\r\n"}}