You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking through biult-in tests, I came to a conclusion, that it's not supposed to save more then one object in CSV.
Is it so?
I would like to make it possible, but I dont want to break logic integrity of this lib.
The text was updated successfully, but these errors were encountered:
@mlavrinenko Thanks for your report! The CSV visitors should be able to serialize/deserialize an array of whatever (only restriction: all generated rows must have the same dimension) so, it sounds like a bug to me...
For your interest, I have started to work on your issue (see https://github.com/egeloen/ivory-serializer/compare/csv-array). It fixes most of your issue but there is still one use case I would like to support and it still does not work (an array with only one item is always unserialized as an object instead of an array...)
Hi!
With small fix the lib can serialize array of objects to CSV:
src/Visitor/Csv/CsvSerializationVisitor.php:133
to
(after this all tests is OK)
But deserialization returns only one object (last line of CSV).
Example that illustrates this:
Looking through biult-in tests, I came to a conclusion, that it's not supposed to save more then one object in CSV.
Is it so?
I would like to make it possible, but I dont want to break logic integrity of this lib.
The text was updated successfully, but these errors were encountered: