scotlad111
07-31-2009, 12:54 PM
Hello, i was wondering can if it is possible to store an instance of a flex object in an SQL database and then read it back out at a later date. I understand i need PHP to do the communicating.
The instance would be an instance of a custom class called "node" i have created (containing methods and properties).
I have implemented the command pattern in an application i have created and want to store each of the commands in a database table.
For instance, if i used toString on the said class then wrote it to the database and then read it back into the app later then somehow converted it back to the object ? Can i do it like this? i dont no if this would work at all but i dont think it will i read somewhere tostring only work if the class does not have methods as it converts it to a generic object,
any ideas?
cheers
The instance would be an instance of a custom class called "node" i have created (containing methods and properties).
I have implemented the command pattern in an application i have created and want to store each of the commands in a database table.
For instance, if i used toString on the said class then wrote it to the database and then read it back into the app later then somehow converted it back to the object ? Can i do it like this? i dont no if this would work at all but i dont think it will i read somewhere tostring only work if the class does not have methods as it converts it to a generic object,
any ideas?
cheers