stwe / DatatablesBundle

This Bundle integrates the jQuery DataTables plugin into your Symfony application.
355 stars 236 forks source link

The option "mapped" does not exist. #953

Open knallcharge opened 4 years ago

knallcharge commented 4 years ago

Hi,

even though "mapped" is listed in the documentation as a valid option (https://github.com/stwe/DatatablesBundle/blob/master/Resources/doc/columns.md#1-column), using it will throw an exception "The option "mapped" does not exist.".

I'm using v1.2.1 and couldn't find that this option was added recently - am I missing something?

Eloar commented 4 years ago

Apperently it was added in documentation with merge of #839. I don't see it implemented so it is clearly an error. If you need to add column that is not mapped from data layer use VirtualColumn.

knallcharge commented 4 years ago

Thanks for pointing out, solved it with VirtualColumn already, was just wondering if it was me or actually an error :)