On Jun 1, 2006, at 1:11 PM, John Siracusa wrote:

That's bad code because it assumes that the column accessor name is
the same as the column name, which is not always the case.
in my code it is... i enforce that for simplicity, and then have '_' prepended accessor names for non-column name accessors

You also have to decide whether you want a hash of accessor-name/ value pairs:
or a hash of column-name/value pairs:
   foreach my $column ($o->meta->columns)
i want the columns.

But what it looks like you're trying to do is clone an object.  If
that's the case, check out the clone() and clone_and_reset() helper
methods in Rose::DB::Object::Helpers.

i want to clone the data/row representation of the db for user and serialization by non-rosedb code -- the clone methods look like they will include the object class, meta data, and rosedb associated items. i really just need a 'dict' / hash of the column_name/ column_value pairs . this data will be read by some custom perl object manipulating scripts that interface with python and php (sadly yes, php)




-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to