On Jun 11, 2007, at 9:22 AM, John Siracusa wrote:
> On 6/11/07 12:14 PM, Michael Reece wrote:
>> method_types => [
>> Rose::DB::Object::Metadata::Relationship::ManyToMany-
>>> default_auto_method_types(),
>> 'count'
>> ],
>> },
>
> Try:
>
> add_methods => [ 'count' ],
fantastic, thanks.
i am in the process of porting some code from CDBI::Sweet to RDBO,
and one thing that tripped me up trying to use an offset + rows, when
rows s.b. 'limit' for RDBO..
i was getting an error like "Could not find MyDB::Message objects -
at ..."
after a little digging:
in Rose::DB::Object::Manager, sub get_objects, ~ line 1608:
if(defined $args{'offset'})
{
Carp::croak "Offset argument is invalid without a limit argument"
unless($args{'limit'} || $manual_limit);
in Rose::DB::Object::MakeMethods::Generic, sub objects_by_map, ~ line
4314:
if($@ || !$objs)
{
$self->error("Could not find $foreign_class objects - " .
$map_manager->error);
$self->meta->handle_error($self);
return wantarray ? () : $objs;
}
however, the error is in $@ and not $map_manager->error, so the
reason for the failure is not reported.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Rose-db-object mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rose-db-object