ExcelAnt icon indicating copy to clipboard operation
ExcelAnt copied to clipboard

How to deserialize a Table Object?

Open Marcelsj opened this issue 11 years ago • 2 comments

I am trying to deserialize a Table object and I do not get how to do it. Is this right? $exceltable=$serializer->deserialize( $table , 'ExcelAnt\Table\Table' ,'json'); I get the following error:

You must define a type for ExcelAnt\Table\Table::$table

How can I define this type?

Marcelsj avatar Oct 21 '13 16:10 Marcelsj

ExcelAnt\Table\Table::$table is an array of CellInterface. this is not a classic php array

rgazelot avatar Oct 22 '13 13:10 rgazelot

Which serializer are you using ? Symfony's ? JMS' ? Maybe it would be an idea to extend the used class with a class implementing an interface those serializers may understand then... But I don't think it is up to us though.

Taluu avatar Oct 22 '13 13:10 Taluu