|
As far as I know there is no way to directly store an object in a database without a plugin using PHP/MySQL. You can store all of its constructors in a database and use that to build the object. Of course there are plugins that simplify the process.
Generally when I have an object that I need stored in a database I just create a table for it and create columns for all of the constructors and attributes. Then when I need to I build the object from the database entries (using setters for any attributes that were not in the constructor).
|