ExcelAnt
ExcelAnt copied to clipboard
How to deserialize a Table Object?
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?
ExcelAnt\Table\Table::$table is an array of CellInterface. this is not a classic php array
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.