Monday 15 November 2010 2:10:10 pm
The users in my database are one of 2 class types. The default User or a new Visitor class that we originally created for a different feature. We have scrapped that feature and would now like to convert all Visitor Objects to User objects. What's the easiest way to do this. I would like to avoid doing a migration in PHP. Can I change the class identifier in the database? Will that work properly or will this put the objects into an inconsistent state? FYI, the attributes are mirrored between the two classes so as long as the attributes are still attached after the transition, I shouldn't need to mess with those. I'm only concerned about switching the class type of the user content object. Thanks :Marco
|