$aBook->dumpview(true); $newBook->dumpview(true); dbm_debug('info', 'Creating the Book "The Art of the Rifle"'); $aBook = new Book(); $aBook->attribs(array('isbn' => '9781581603071', 'author' => 'Jeff Cooper', 'title' => 'The Art of the Rifle', 'pubyear' => '2002')); $aBook->save(); $aBook->dumpview(true); dbm_debug('info', 'Creating the Book "The Revolution: A Manifesto"'); $aBook = new Book(); $aBook->attribs(array('title' => 'The Revolution: A Manifesto', 'isbn' => '0-446-53751-9', 'author' => 'Ron Paul', 'pubyear' => '2008')); $aBook->save(); $aBook->dumpview(true); dbm_debug('info', 'Creating the Collection "Rich\'s Favorite Books"'); $pub = new collection(); $pub->attribs(array('name' => "Rich's Favorite Books")); $pub->save(); $pub->dumpview(true); dbm_debug('heading', 'Testing linking functions. . .'); dbm_debug('info', 'Loading book 2 . . . '); $greatBook = new Book(2); // Loads Cooper's book from the database dbm_debug('info', 'done.'); $greatBook->dumpview(true); dbm_debug('info', 'Creating a fresh Review . . . '); $myReview = new Review(); // Create a new review dbm_debug('info', 'Done.'); dbm_debug('info', 'Table Definitions for $myReview:'); dbm_debug('data', $myReview->getTableDefs()); $myReview->dumpview(true); dbm_debug('info', 'Setting attributes on the Review . . . ');