[Catalyst-commits] r14431 - in
CatalystX-CRUD/CatalystX-CRUD-Model-RDBO/trunk: .
lib/CatalystX/CRUD/Model lib/CatalystX/CRUD/Object
karpet at dev.catalyst.perl.org
karpet at dev.catalyst.perl.org
Mon Jan 28 19:10:21 GMT 2013
Author: karpet
Date: 2013-01-28 19:10:21 +0000 (Mon, 28 Jan 2013)
New Revision: 14431
Modified:
CatalystX-CRUD/CatalystX-CRUD-Model-RDBO/trunk/Changes
CatalystX-CRUD/CatalystX-CRUD-Model-RDBO/trunk/MANIFEST
CatalystX-CRUD/CatalystX-CRUD-Model-RDBO/trunk/lib/CatalystX/CRUD/Model/RDBO.pm
CatalystX-CRUD/CatalystX-CRUD-Model-RDBO/trunk/lib/CatalystX/CRUD/Object/RDBO.pm
Log:
wrap RDBO Iterator in CXC Iterator; release 0.26
Modified: CatalystX-CRUD/CatalystX-CRUD-Model-RDBO/trunk/Changes
===================================================================
--- CatalystX-CRUD/CatalystX-CRUD-Model-RDBO/trunk/Changes 2013-01-16 01:23:15 UTC (rev 14430)
+++ CatalystX-CRUD/CatalystX-CRUD-Model-RDBO/trunk/Changes 2013-01-28 19:10:21 UTC (rev 14431)
@@ -88,3 +88,7 @@
0.25 5 Nov 2012
* fix skip test count for t/02-rest
+
+0.26 28 Jan 2013
+ * wrap RDBO::Iterator in CXC::Iterator for search_related() and iterator_related() methods.
+
Modified: CatalystX-CRUD/CatalystX-CRUD-Model-RDBO/trunk/MANIFEST
===================================================================
--- CatalystX-CRUD/CatalystX-CRUD-Model-RDBO/trunk/MANIFEST 2013-01-16 01:23:15 UTC (rev 14430)
+++ CatalystX-CRUD/CatalystX-CRUD-Model-RDBO/trunk/MANIFEST 2013-01-28 19:10:21 UTC (rev 14431)
@@ -20,6 +20,5 @@
t/lib/MyApp/Model/Bar.pm
t/lib/MyApp/Model/Foo.pm
t/lib/MyApp/Object.pm
-t/lib/MyApp/script/myapp_server.pl
t/pod-coverage.t
t/pod.t
Modified: CatalystX-CRUD/CatalystX-CRUD-Model-RDBO/trunk/lib/CatalystX/CRUD/Model/RDBO.pm
===================================================================
--- CatalystX-CRUD/CatalystX-CRUD-Model-RDBO/trunk/lib/CatalystX/CRUD/Model/RDBO.pm 2013-01-16 01:23:15 UTC (rev 14430)
+++ CatalystX-CRUD/CatalystX-CRUD-Model-RDBO/trunk/lib/CatalystX/CRUD/Model/RDBO.pm 2013-01-28 19:10:21 UTC (rev 14431)
@@ -8,7 +8,7 @@
use Carp;
use Data::Dump qw( dump );
-our $VERSION = '0.25';
+our $VERSION = '0.26';
__PACKAGE__->mk_ro_accessors(
qw( name manager treat_like_int load_with related_load_with ));
@@ -325,13 +325,17 @@
sub search_related {
my ( $self, $obj, $rel ) = @_;
- return $obj->$rel( $self->_related_query( $obj, $rel ) );
+ return CatalystX::CRUD::Iterator->new(
+ $obj->$rel( $self->_related_query( $obj, $rel ) ),
+ $self->object_class );
}
sub iterator_related {
my ( $self, $obj, $rel ) = @_;
my $method = $rel . '_iterator';
- return $obj->$method( $self->_related_query( $obj, $rel ) );
+ return CatalystX::CRUD::Iterator->new(
+ $obj->$method( $self->_related_query( $obj, $rel ) ),
+ $self->object_class );
}
sub count_related {
Modified: CatalystX-CRUD/CatalystX-CRUD-Model-RDBO/trunk/lib/CatalystX/CRUD/Object/RDBO.pm
===================================================================
--- CatalystX-CRUD/CatalystX-CRUD-Model-RDBO/trunk/lib/CatalystX/CRUD/Object/RDBO.pm 2013-01-16 01:23:15 UTC (rev 14430)
+++ CatalystX-CRUD/CatalystX-CRUD-Model-RDBO/trunk/lib/CatalystX/CRUD/Object/RDBO.pm 2013-01-28 19:10:21 UTC (rev 14431)
@@ -7,7 +7,7 @@
use Rose::DB::Object::Helpers qw( column_values_as_json );
use JSON;
-our $VERSION = '0.25';
+our $VERSION = '0.26';
=head1 NAME
More information about the Catalyst-commits
mailing list