private function insertBookData()
{
list($books, $pages, $texts, $categories) = R::dispenseAll('book*5,page*25,text*60,category*3');
$texts[0]->content = 'C is a beautiful language.';
$texts[1]->content = 'But also a bit dangerous.';
$texts[2]->content = 'You need to know what you are doing.';
$texts[3]->content = 'Javascript is very flexible.';
$texts[4]->content = 'It can be anything you want...';
$texts[5]->content = 'But it can lead to chaos.';
$texts[6]->content = 'CSS was meant for documents';
$texts[7]->content = 'Now we use it for applications...';
$texts[8]->content = 'PHP is an easy language to learn,';
$texts[9]->content = 'Maybe a bit too easy...';
$texts[10]->content = 'SQL is much more powerful than you think.';
$pages[0]->ownTextList = array($texts[0], $texts[1]);
$pages[1]->ownTextList = array($texts[2]);
$pages[2]->ownTextList = array($texts[3]);
$pages[3]->ownTextList = array($texts[4]);
$pages[4]->ownTextList = array($texts[5]);
$pages[5]->ownTextList = array($texts[6], $texts[7]);
$pages[6]->ownTextList = array($texts[8]);
$pages[7]->ownTextList = array($texts[9]);
$pages[8]->ownTextList = array($texts[10]);
$books[0]->ownPageList = array($pages[0], $pages[1]);
$books[1]->ownPageList = array($pages[2], $pages[3], $pages[4]);
$books[2]->ownPageList = array($pages[5]);
$books[3]->ownPageList = array($pages[6], $pages[7]);
$books[4]->ownPageList = array($pages[8]);
$books[0]->title = 'Diehard C';
$books[1]->title = 'Adventures in JavaScript';
$books[2]->title = 'CSS ala Picasso';
$books[3]->title = 'PHP Tips and Tricks';
$books[4]->title = 'Secrets of SQL';
$categories[0]->name = 'Programming';
$categories[1]->name = 'Design';
$categories[2]->name = 'Web Development';
$books[0]->sharedCategoryList = array($categories[0]);
$books[1]->sharedCategoryList = array($categories[0], $categories[2]);
$books[2]->sharedCategoryList = array($categories[0], $categories[2], $categories[1]);
$books[3]->sharedCategoryList = array($categories[0], $categories[2]);
$books[4]->sharedCategoryList = array($categories[0], $categories[2]);
R::storeAll($books);
}