Permalink
Browse files

(5) - Example editing across relationships

  • Loading branch information...
vanstyn committed Sep 12, 2013
1 parent 377b5b0 commit 8dc11eec27ef0f7b539c040663b237c1ae3cf0e7
Showing with 18 additions and 0 deletions.
  1. BIN chinook.db
  2. +6 −0 cmd_history.sh
  3. +12 −0 lib/RA/ChinookDemo.pm
BIN +0 Bytes (100%) chinook.db
Binary file not shown.
@@ -205,3 +205,9 @@ script/ra_chinookdemo_server.pl
# Enable grid editing
vim lib/RA/ChinookDemo.pm
Commit '(4) - turned on grid editing for all Sources'
# Start the test server:
script/ra_chinookdemo_server.pl
#
# Configure editing across relationships
vim lib/RA/ChinookDemo.pm
Commit '(5) - Example editing across relationships'
@@ -35,6 +35,18 @@ __PACKAGE__->config(
Album => {
include_colspec => ['*','artistid.name']
},
Invoice => {
# Delete invoice_lines with invoice (cascade):
destroyable_relspec => ['*','invoice_lines']
},
InvoiceLine => {
# join all columns of all relationships (first-level):
include_colspec => ['*','*.*'],
updatable_colspec => [
'invoiceid','unitprice',
'invoiceid.billing*'
],
},
Track => {
include_colspec => ['*','albumid.artistid.*']
},

0 comments on commit 8dc11ee

Please sign in to comment.