{"action":"created","issue":{"url":"https://api.github.com/repos/chafiq/TableBundle/issues/9","labels_url":"https://api.github.com/repos/chafiq/TableBundle/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/chafiq/TableBundle/issues/9/comments","events_url":"https://api.github.com/repos/chafiq/TableBundle/issues/9/events","html_url":"https://github.com/chafiq/TableBundle/issues/9","id":112522262,"number":9,"title":"Custom ColumnType not loading during rendering","user":{"login":"alanscott","id":6107646,"avatar_url":"https://avatars.githubusercontent.com/u/6107646?v=3","gravatar_id":"","url":"https://api.github.com/users/alanscott","html_url":"https://github.com/alanscott","followers_url":"https://api.github.com/users/alanscott/followers","following_url":"https://api.github.com/users/alanscott/following{/other_user}","gists_url":"https://api.github.com/users/alanscott/gists{/gist_id}","starred_url":"https://api.github.com/users/alanscott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanscott/subscriptions","organizations_url":"https://api.github.com/users/alanscott/orgs","repos_url":"https://api.github.com/users/alanscott/repos","events_url":"https://api.github.com/users/alanscott/events{/privacy}","received_events_url":"https://api.github.com/users/alanscott/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-21T06:41:02Z","updated_at":"2015-10-21T14:52:09Z","closed_at":null,"body":"I've created a custom column type that I want to use to display boolean values.\r\nI built it to extend IconType.\r\n\r\n*config.yml*\r\n```\r\nemc_table:\r\n    export:\r\n    ...\r\n    extensions:\r\n        - MyBundle:Table\\Column:boolean.html.twig\r\n```\r\n\r\n*MyBundle:Table\\Column:boolean.html.twig*\r\n```\r\n{% block boolean_widget %}\r\n    <i {{ block('attributes') }}></i>\r\n{% endblock %}\r\n```\r\n\r\n*services.yml*\r\n```\r\n    table.column.boolean:\r\n        class: MyBundle\\Service\\Table\\Column\\BooleanType\r\n        tags:\r\n            - { name: column.type, alias: boolean }\r\n```\r\n\r\n*BooleanType.php*\r\n```\r\nclass BooleanType extends IconType\r\n{\r\n    /**\r\n     * {@inheritdoc}\r\n     */\r\n    public function buildView(\r\n        array &$view,\r\n        ColumnInterface $column,\r\n        array $data,\r\n        array $options\r\n    ) {\r\n        parent::buildView($view, $column, $data, $options);\r\n\r\n        $view['icon'] = $options['value'] ? $options['icon_true'] : $options['icon_false'];\r\n    }\r\n\r\n    /**\r\n     * @param OptionsResolverInterface $resolver\r\n     */\r\n    public function setDefaultOptions(OptionsResolverInterface $resolver)\r\n    {\r\n        parent::setDefaultOptions($resolver);\r\n\r\n        $resolver->setDefaults([\r\n            'icon_true'  => 'check',\r\n            'icon_false' => 'ban'\r\n        ]);\r\n\r\n        $resolver->addAllowedTypes([\r\n            'icon_true'  => 'string',\r\n            'icon_false' => 'string',\r\n        ]);\r\n    }\r\n\r\n    /**\r\n     * {@inheritdoc}\r\n     */\r\n    public function getName()\r\n    {\r\n        return 'boolean';\r\n    }\r\n}\r\n```\r\n\r\nThe table renders just fine. Except in the column with the `boolean` type I get `<i></i>`. What am I missing?"},"comment":{"url":"https://api.github.com/repos/chafiq/TableBundle/issues/comments/149921359","html_url":"https://github.com/chafiq/TableBundle/issues/9#issuecomment-149921359","issue_url":"https://api.github.com/repos/chafiq/TableBundle/issues/9","id":149921359,"user":{"login":"alanscott","id":6107646,"avatar_url":"https://avatars.githubusercontent.com/u/6107646?v=3","gravatar_id":"","url":"https://api.github.com/users/alanscott","html_url":"https://github.com/alanscott","followers_url":"https://api.github.com/users/alanscott/followers","following_url":"https://api.github.com/users/alanscott/following{/other_user}","gists_url":"https://api.github.com/users/alanscott/gists{/gist_id}","starred_url":"https://api.github.com/users/alanscott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanscott/subscriptions","organizations_url":"https://api.github.com/users/alanscott/orgs","repos_url":"https://api.github.com/users/alanscott/repos","events_url":"https://api.github.com/users/alanscott/events{/privacy}","received_events_url":"https://api.github.com/users/alanscott/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T14:52:09Z","updated_at":"2015-10-21T14:52:09Z","body":"@chafiq Should the documentation at http://www.table-bundle.com/doc?#column-type be updated or did I just miss some documentation in another location?"}}