| ... | ... |
@@ -2,7 +2,7 @@ |
| 2 | 2 |
- renamed EXPERIMENTAL available_type_name to available_typename |
| 3 | 3 |
- renamed EXPERIMENTAL available_data_type to available_datatype |
| 4 | 4 |
- added EXPERIMENTAL DBIx::Custom::Where if method |
| 5 |
- - added EXPERIMENTAL DBIx::Custom::Where map attribute |
|
| 5 |
+ - added EXPERIMENTAL DBIx::Custom::Where map method |
|
| 6 | 6 |
0.1710 |
| 7 | 7 |
- use more DBIx::Custom information in sub modules to decrease bugs |
| 8 | 8 |
(very sorry, this change can't keep backword compatible, |
| ... | ... |
@@ -316,8 +316,9 @@ C<if> is default of C<map> method C<if> option. |
| 316 | 316 |
|
| 317 | 317 |
=head2 C<map EXPERIMENTAL> |
| 318 | 318 |
|
| 319 |
-Mapping parameter key and value. C<param> is converted, |
|
| 319 |
+Mapping parameter key and value. C<param> is converted based on, |
|
| 320 | 320 |
so this method must be called after C<param> is set. |
| 321 |
+Set C<if> if you need before C<map> method call. |
|
| 321 | 322 |
|
| 322 | 323 |
$where->map( |
| 323 | 324 |
'id' => 'book.id', |
| ... | ... |
@@ -327,6 +328,22 @@ so this method must be called after C<param> is set. |
| 327 | 328 |
] |
| 328 | 329 |
); |
| 329 | 330 |
|
| 331 |
+The followin parameter |
|
| 332 |
+ |
|
| 333 |
+ {
|
|
| 334 |
+ id => 1, |
|
| 335 |
+ auhtor => 'Ken', |
|
| 336 |
+ price => 1000 |
|
| 337 |
+ } |
|
| 338 |
+ |
|
| 339 |
+is converted to |
|
| 340 |
+ |
|
| 341 |
+ {
|
|
| 342 |
+ 'book.id' => 1, |
|
| 343 |
+ 'book.author' => '%Ken%', |
|
| 344 |
+ 'book.price' => 1000 |
|
| 345 |
+ } |
|
| 346 |
+ |
|
| 330 | 347 |
The following option is available. |
| 331 | 348 |
|
| 332 | 349 |
=over 4 |