NullRefExcep / yii2-datatables

Yii2 Widget for DataTables jQuery plug-in
http://www.datatables.net/
MIT License
72 stars 46 forks source link

Unknow column name #48

Closed AFSIDD closed 5 years ago

AFSIDD commented 5 years ago

Setting unknown property: nullref\datatable\DataTableColumn::name

'columns' => [ 'consumer', [ 'data' => 'branchName', 'title' => "Branch Name", 'name' => 'branchId' ], ]

Can you help with this? Currently on this version v1.1.0.

ZAYEC77 commented 5 years ago

we didn't support property name, please check readme

AFSIDD commented 5 years ago

It worked with the previous version, although i get your point that you never supported name property before also. Is there a work around?

ZAYEC77 commented 5 years ago

I guess we have this exception at old version too, but you could check it to download v1.0.4. We have "magic" set/get for DataTable class but it was never for DataTableColumn.

AFSIDD commented 5 years ago

Nope, adding class doesn't help also, i will try going back to 1.0.4 and recheck.

Thanks.