dudapiotr / ZfTable

*Not supported*ZfTable 3.1. Awesome ZF2 table / grid (and much much more) generator with huge possibilities of decorating and conditioning. Integrated with DataTables, Doctrine 2, Bootstrap 2.0 and 3.0.
http://dudapiotrek.laohost.net/
MIT License
75 stars 59 forks source link

Call to undefined method ArrayObject::toArray() #23

Closed dfiloni closed 10 years ago

dfiloni commented 10 years ago

In ZfTable\Params\AdapterArrayObject you should change:

line 86: from: $array = $this->object->toArray(); to: $array = $this->object->getArrayCopy();

in order to fix: PHP Fatal error: Call to undefined method ArrayObject::toArray() in /var/www/zf2-project/vendor/dudapiotr/zftable/src/ZfTable/Params/AdapterArrayObject.php on line 86, referer: /

dudapiotr commented 10 years ago

You have right! Thanks.

dfiloni commented 10 years ago

Hi! I see ->toArray is in other adapters too (same error in \ZfTable\Params\AdapterDataTables)