[Dbix-class] Resultset accessors for lazy people, and compile-time checking.

2009-04-09 Thread Toby Corkindale
Hi, Another task I commonly do in DBIC is to access resultsets from the $schema object, eg: $schema-resultset('MyObject')-find(1); Sometimes I make a mistake, and write: $schema-resultset('MyObjcet')-find(1); However that compiles just fine, and won't get picked up until that bit of code is

[Dbix-class] Re: FYI - modern Muldis D code examples

2009-04-09 Thread Darren Duncan
Hello, This message is an update to my post from yesterday of the same subject. If you don't have it handy, then a copy is archived at http://mm.darrenduncan.net/pipermail/muldis-db-devel/2009-April/23.html . I have significantly updated the Muldis D code samples of yesterday and the

[Dbix-class] DBIx::Class::Relationship-has_one documentation

2009-04-09 Thread Ben Vinnerd
Hey, I've noticed in the docs for has_one, that the 3rd arg is $join_condition (optional). Is this a mistake? Shouldn't has_one accept the same args as might_have? Ben ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC:

Re: [Dbix-class] ANNOUNCE: 0.08099_08 (0.08100_RC2)

2009-04-09 Thread Peter Corlett
On Wed, Apr 08, 2009 at 06:23:39PM +0200, Andreas Mock wrote: [...] I was pleased to see that there's some support for savepoints, which leads to the possibility of finally having an atomic create_or_update(). I'm interested in that. How are you doing it? Why do you need savepoints to do a