Re: [RDBO] Elegant way to generically query a table?

2006-10-15 Thread John Siracusa
On 10/15/06 3:07 PM, Jonathan Vanasco wrote: > On Oct 14, 2006, at 9:58 PM, John Siracusa wrote: >> I think they key piece of knowledge you're missing is that a call >> like: >> >> $objs = My::Whatever::Manager->get_whatevers(...); >> >> is exactly equivalent to: >> >> $objs = Rose::DB::

Re: [RDBO] Elegant way to generically query a table?

2006-10-15 Thread Jonathan Vanasco
On Oct 14, 2006, at 9:58 PM, John Siracusa wrote: > I think they key piece of knowledge you're missing is that a call > like: > > $objs = My::Whatever::Manager->get_whatevers(...); > > is exactly equivalent to: > > $objs = Rose::DB::Object::Manager->get_objects( > object_c

Re: [RDBO] give an error on where => [ col_id => [] ]

2006-10-15 Thread John Siracusa
On 10/15/06 2:59 AM, Ask Bjørn Hansen wrote: > On Oct 14, 2006, at 7:04 PM, John Siracusa wrote: >> Hm, I was thinking more along the lines of allow_empty_lists or >> something. > > I like that. (Except if allowing it is the default, then "allow_*" > feels a little backwards). Nah, because the o