[RDBO] serializing rose objects

2007-12-10 Thread Ken
Hello, I don't know if this exists already, but I needed a way to serialize an entire rose object tree into json. To do this, I created the below methods in my base Rose::DB::Object class. I can then use this to serialize the entire object tree by doing: my $json = JSON::Syck::Dump($rose_o

[RDBO] unique_keys problem

2007-12-10 Thread Adam Prime
I was crying about this on IRC this afternoon, but didn't get much of a response, i've bashed away at it long enough to come up with a failing test now, so maybe someone can help me out. the attached files go like this. t/adam_test.t t/lib/EatLocal/DB.pm t/lib/EatLocal/DB/Object.pm t/lib/EatLo

Re: [RDBO] unique_keys problem

2007-12-10 Thread adam . prime
With this patch, everything + my failing test passes. I'm not sure if this is a good idea or a bad idea though. In my test that fails $_ is defined as an empty string (as far as i can tell) for some reason, instead of as undef as i would expect. There's probably an underlying bug causing