Re: [Dbix-class] Using Test::TestCoverage v0.08 with DBIC v0.08102

2009-05-08 Thread Renee Bäcker
Hi, Anthony Gladdish schrieb: > Has anyone else experienced this with Test::TestCoverage, or can anyone tell > me if this should be happening and suggest a work around or solution such as > "don't use Test::TestCoverage". As a workaround, you can use this method: test_coverage_except( $module,

[Dbix-class] Using Test::TestCoverage v0.08 with DBIC v0.08102

2009-05-08 Thread Anthony Gladdish
Hi, I'm using Test::TestCoverage v0.08 to test coverage of my DBIC schema library. My schema test suite passes against DBIC v0.08010, but testing against DBIC v0.08102 fails as Test::TestCoverage flags that no tests exist for any of the following DBIC methods: _rs add_to_ remove_from_ Obvious

Re: [Dbix-class] Row object does not work correctly after thaw.

2009-05-08 Thread Oleg Pronin
Thanks! But i have serveral databases (several schema classes). Temporarily i placed this piece of code into framework's base resultsource which automatically gets the right schema on thaw and support several schemas but works only under catalyst project. our %schema_thaw_cache; sub STORABLE_thaw

Re: [Dbix-class] Row object does not work correctly after thaw.

2009-05-08 Thread Ash Berlin
On 8 May 2009, at 10:09, Oleg Pronin wrote: Hello. DBIx::Class::ResultSourceHandle has storable hooks to correctly store row object and restore it. However after restore, trying to update such an object will fail: Can't call method "update" on an undefined value at /usr/local/lib/ perl5/s

Re: [Dbix-class] register_source() regression in 0.08102

2009-05-08 Thread Peter Rabbitson
Ian Wells wrote: > 2009/5/7 Ronald J Kimball : >> What is the correct way to implement this with 0.08102? I'm skeptical about >> register_extra_source(), because I'm not registering an additional source >> for UserSession; I'm registering a new source for UserSession200905. > > The way the docume

[Dbix-class] Row object does not work correctly after thaw.

2009-05-08 Thread Oleg Pronin
Hello. DBIx::Class::ResultSourceHandle has storable hooks to correctly store row object and restore it. However after restore, trying to update such an object will fail: Can't call method "update" on an undefined value at /usr/local/lib/perl5/site_perl/5.10.0/DBIx/Class/Row.pm line 490. Because