{"action":"created","issue":{"url":"https://api.github.com/repos/infinite-networks/InfiniteFormBundle/issues/50","labels_url":"https://api.github.com/repos/infinite-networks/InfiniteFormBundle/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/infinite-networks/InfiniteFormBundle/issues/50/comments","events_url":"https://api.github.com/repos/infinite-networks/InfiniteFormBundle/issues/50/events","html_url":"https://github.com/infinite-networks/InfiniteFormBundle/issues/50","id":120753895,"number":50,"title":"SubType","user":{"login":"3KyNoX","id":308755,"avatar_url":"https://avatars.githubusercontent.com/u/308755?v=3","gravatar_id":"","url":"https://api.github.com/users/3KyNoX","html_url":"https://github.com/3KyNoX","followers_url":"https://api.github.com/users/3KyNoX/followers","following_url":"https://api.github.com/users/3KyNoX/following{/other_user}","gists_url":"https://api.github.com/users/3KyNoX/gists{/gist_id}","starred_url":"https://api.github.com/users/3KyNoX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/3KyNoX/subscriptions","organizations_url":"https://api.github.com/users/3KyNoX/orgs","repos_url":"https://api.github.com/users/3KyNoX/repos","events_url":"https://api.github.com/users/3KyNoX/events{/privacy}","received_events_url":"https://api.github.com/users/3KyNoX/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-07T11:29:20Z","updated_at":"2015-12-08T11:37:25Z","closed_at":null,"body":"Hello again,\r\n\r\nI face currently another problem about defining \"___sub-sub-type___\".\r\n\r\nIf i re-take my last example available at https://github.com/infinite-networks/InfiniteFormBundle/issues/48, I got a main formType MoyenCommType that countains childrens : \r\n\r\n- TelephoneType\r\n- EmailType\r\n- AdresseType\r\n\r\nNow I wish to extends TelephoneType -> MobileType\r\n\r\nThen : \r\n\r\n- I created my Mobile entity (with only one property 'smsing' that means can sends sms)\r\n\r\n```php\r\n// brunoBundle/Entity/Mobile.php\r\n\r\nnamespace brunoBundle\\Entity;\r\n\r\n/**\r\n * Mobile\r\n */\r\nclass Mobile extends Telephone\r\n{\r\n    /**\r\n     * @var boolean\r\n     */\r\n    protected $smsing;\r\n\r\n\r\n    /**\r\n     * Set smsing\r\n     *\r\n     * @param boolean $smsing\r\n     *\r\n     * @return Mobile\r\n     */\r\n    public function setSmsing($smsing)\r\n    {\r\n        $this->smsing = $smsing;\r\n\r\n        return $this;\r\n    }\r\n\r\n    /**\r\n     * Get smsing\r\n     *\r\n     * @return boolean\r\n     */\r\n    public function getSmsing()\r\n    {\r\n        return $this->smsing;\r\n    }\r\n}\r\n```\r\n\r\n- I setted my inheritance\r\n\r\n```yml\r\n#brunoBundle/Resources/config/doctrine/Telephone.orm.yml\r\n\r\nbrunoBundle\\Entity\\Telephone:\r\n    type: entity\r\n    table: null\r\n    repositoryClass: brunoBundle\\Entity\\TelephoneRepository\r\n    inheritanceType: JOINED\r\n    discriminatorColumn:\r\n        name: type\r\n        type: integer\r\n    discriminatorMap:\r\n        1: Mobile\r\n    fields:\r\n        numero:\r\n            type: string\r\n            length: 255\r\n\r\n    lifecycleCallbacks: {  }\r\n```\r\n\r\n- Defined my new type with polycollection\r\n\r\n```php\r\n// brunoBundle/Form/ContactType\r\n// ...\r\n->add('moyensComm', 'infinite_form_polycollection', array(\r\n    'types' => array(\r\n        'brunobundle_moyencomm',\r\n        'brunobundle_telephone',\r\n        'brunobundle_email',\r\n        'brunobundle_adresse',\r\n        'brunobundle_mobile'\r\n    ),\r\n```\r\n\r\n- And created my MobileType form : \r\n\r\n```php\r\n// brunoBundle/Form/MobileType.php\r\n\r\nnamespace brunoBundle\\Form;\r\n\r\nuse Symfony\\Component\\Form\\FormBuilderInterface;\r\n\r\nclass MobileType extends TelephoneType\r\n{\r\n    protected $dataClass = 'brunoBundle\\Entity\\Mobile';\r\n\r\n    /**\r\n     * @param FormBuilderInterface $builder\r\n     * @param array $options\r\n     */\r\n    public function buildForm(FormBuilderInterface $builder, array $options)\r\n    {\r\n        parent::buildForm($builder, $options);\r\n\r\n        $builder\r\n            ->add('smsing')\r\n        ;\r\n    }\r\n\r\n    /**\r\n     * @return string\r\n     */\r\n    public function getName()\r\n    {\r\n        return 'brunobundle_mobile';\r\n    }\r\n}\r\n```\r\n\r\nI finally updated database and added a first entry in the mobile table.\r\n\r\nNow I try to get that value from my polycollection theme, prototype exists but that children appears nowhere from my dumps.\r\n\r\nAny idea ?"},"comment":{"url":"https://api.github.com/repos/infinite-networks/InfiniteFormBundle/issues/comments/162857501","html_url":"https://github.com/infinite-networks/InfiniteFormBundle/issues/50#issuecomment-162857501","issue_url":"https://api.github.com/repos/infinite-networks/InfiniteFormBundle/issues/50","id":162857501,"user":{"login":"3KyNoX","id":308755,"avatar_url":"https://avatars.githubusercontent.com/u/308755?v=3","gravatar_id":"","url":"https://api.github.com/users/3KyNoX","html_url":"https://github.com/3KyNoX","followers_url":"https://api.github.com/users/3KyNoX/followers","following_url":"https://api.github.com/users/3KyNoX/following{/other_user}","gists_url":"https://api.github.com/users/3KyNoX/gists{/gist_id}","starred_url":"https://api.github.com/users/3KyNoX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/3KyNoX/subscriptions","organizations_url":"https://api.github.com/users/3KyNoX/orgs","repos_url":"https://api.github.com/users/3KyNoX/repos","events_url":"https://api.github.com/users/3KyNoX/events{/privacy}","received_events_url":"https://api.github.com/users/3KyNoX/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T11:37:25Z","updated_at":"2015-12-08T11:37:25Z","body":"Not yet. Thanks anyway, I'll sort this doctrine issue out."}}