omines / datatables-bundle

DataTables bundle for Symfony
https://omines.github.io/datatables-bundle/
MIT License
251 stars 113 forks source link

Multi Values Calculation #327

Closed xDeSwa closed 3 months ago

xDeSwa commented 5 months ago

hi,

i created stock manager; i got correct stock number when use dd on controller. (400)

dd_controller

DB data; phpmyadmin_datas

TwigStringColum; twigstring

TwigStringColum with for loop (its calculated called twice data); Screenshot 2024-01-04 at 18-40-26 Stok Yönetimi _ Yönetim Paneli

Entity / this calculating Collection items in loop getToplamStok

Result; tablo

I couldn't figure out what caused this.

curry684 commented 5 months ago

The sum of the items in your 4th image is 800, that's probably the root cause. But apart from that with this information I'm not really seeing an issue in this bundle. Please provide more information pointing to a bundle issue.

xDeSwa commented 5 months ago

thanks for reply, i mean data coming twice. i tried without datatables thats ok (dd, standart table, bootstrap table etc..). they calculated 400.

curry684 commented 5 months ago

Again, with this information I see no bundle issue. There is no code in the bundle which actually multiplies values by 2 in a column. Therefore your code must be doing that.

Please do some real debugging, currently there is no indication whatsoever you are experiencing an issue in this bundle. Without solid data backing that up I will close the issue.

github-actions[bot] commented 3 months ago

Stale issue message