Showing 2 changed files with 4 additions and 17 deletions
+2 -1
Changes
... ...
@@ -1,6 +1,7 @@
1 1
 0.1692
2 2
     - separate DBIx::Custom type_rule from filter
3
-    - DBIx::Custom Model filter attrribute is DEPRECATED!
3
+    - DBIx::Custom::Model filter attrribute is DEPRECATED!
4
+    - DBIx::Custom::Model name attribute is DEPRECATED!
4 5
     - removed EXPERIMENTAL DBIx::Custom::Model alias_table
5 6
     - added DBIx::Custom column method's table option
6 7
     - separate DBIx::Custom::Result type_rule from filter again
+2 -16
lib/DBIx/Custom/Model.pm
... ...
@@ -8,7 +8,7 @@ use DBIx::Custom::Util '_subname';
8 8
 # Carp trust relationship
9 9
 push @DBIx::Custom::CARP_NOT, __PACKAGE__;
10 10
 
11
-has [qw/dbi name table view/],
11
+has [qw/dbi table/],
12 12
     columns => sub { [] },
13 13
     join => sub { [] },
14 14
     type => sub { [] },
... ...
@@ -100,6 +100,7 @@ sub new {
100 100
 
101 101
 # DEPRECATED!
102 102
 has filter => sub { [] };
103
+has 'name';
103 104
 
104 105
 1;
105 106
 
... ...
@@ -122,13 +123,6 @@ my $table = DBIx::Custom::Model->new(table => 'books');
122 123
 
123 124
 L<DBIx::Custom> object.
124 125
 
125
-=head2 C<name>
126
-
127
-    my $name = $model->name;
128
-    $model   = $model->name('book');
129
-
130
-Model name.
131
-
132 126
 =head2 C<join>
133 127
 
134 128
     my $join = $model->join;
... ...
@@ -163,14 +157,6 @@ Database data type, this is used as type optioon of C<insert()>, C<insert_at()>,
163 157
 C<update()>, C<update_at()>, C<update_all>, C<delete()>, C<delete_all()>,
164 158
 C<select()>, C<select_at()>
165 159
 
166
-=head2 C<view>
167
-
168
-    my $view = $model->view;
169
-    $model   = $model->view('select id, DATE(issue_datetime) as date from book');
170
-
171
-View. This view is registered by C<view()> of L<DBIx::Custom> when
172
-model is included by C<include_model>.
173
-
174 160
 =head1 METHODS
175 161
 
176 162
 L<DBIx::Custom::Model> inherits all methods from L<Object::Simple>,