Help with serialize

Hi,

I’m having problems with serialize helper method. The data serialization is OK, the problem is when I retrieve the object from database later the serialized attribute is not loaded (=nil). I’m trying to implement the Serialized LOB design pattern, do you think there is a better way to do it? What I’m trying to serialize/deserialize is an array of OpenStruct.

Any help will be very appreciated.

Thanks in advance,

Gustavo Honorato

Hi,

I'm having problems with serialize helper method. The data serialization is
OK, the problem is when I retrieve the object from database later the
serialized attribute is not loaded (=nil). I'm trying to implement the
Serialized LOB design pattern, do you think there is a better way to do it?
What I'm trying to serialize/deserialize is an array of OpenStruct.

What's the type of the column that the serialized data is being
serialized into? Is it big enough?

Fred

Hi,

I’m having problems with serialize helper method. The data serialization is

OK, the problem is when I retrieve the object from database later the

serialized attribute is not loaded (=nil). I’m trying to implement the

Serialized LOB design pattern, do you think there is a better way to do it?

What I’m trying to serialize/deserialize is an array of OpenStruct.

What’s the type of the column that the serialized data is being

serialized into? Is it big enough?

It is a text column in MySQL. I’ve checked the database and all data is there.

Serialization is OK. I think the problem is in deserialization.