implements build_collection_actions => as { {} };
implements build_default_object_actions => as { [ qw/Update Delete/ ] };
- implements build_default_collection_actions => as { [ 'Create' ] };
+ implements build_default_collection_actions => as { [ qw/Create DeleteAll/ ] };
implements build_builtin_object_actions => as {
{
implements build_builtin_collection_actions => as {
{
Create => {name => 'Create', base => Create },
- DeleteAll => {name => 'DeleteAll', base => DeleteAll }
+ DeleteAll => {name => 'DeleteAll', base => DeleteAll, attributes => [] }
};
};
my ($self, $c) = @_;
}
+#XXX candidate for futre optimization
sub get_collection {
my ($self, $c) = @_;
my $model = $c->model( $self->model_name );
{ 'foreign.id' => 'self.foo_id' }
);
-__PACKAGE__->meta->make_immutable;
-
+#__PACKAGE__->meta->make_immutable;
+__PACKAGE__->meta->make_immutable(inline_constructor => 0);
1;
__PACKAGE__->has_many('links_to_foo_list' => 'RTest::TestDB::FooBaz', 'baz');
__PACKAGE__->many_to_many('foo_list' => 'links_to_foo_list' => 'foo');
-__PACKAGE__->meta->make_immutable;
+#__PACKAGE__->meta->make_immutable;
+__PACKAGE__->meta->make_immutable(inline_constructor => 0);
1;
}
-__PACKAGE__->meta->make_immutable;
+__PACKAGE__->meta->make_immutable(inline_constructor => 0);
1;