On 9/19/06, James Masters <[EMAIL PROTECTED]> wrote:
> package GARD::Book::Extra;
> GARD::Book->meta->add_relationships(
>         booktype => {
>                 type => 'many to one',
>                 class => 'GARD::Booktype',
>                 column_map => { booktypecode => 'code' }
>                 }
>         );
> GARD::Book->meta->initialize(preserve_existing => 1);
> -------------------------------------
>
> Here below is the output from showing all the classes that are set up
> immediately after the make_classes command:
>
> package GARD::Book;
> [...]
> __PACKAGE__->meta->setup
> (
>   [...]
>   relationships =>
>   [
>     booktype =>
>     {
>       class      => 'GARD::Booktype',
>       column_map => { booktypecode => 'code' },
>       type       => 'many to one',
>     },
>   ],
> );

Why do you need to add the "booktype" releationship in your ::Extra
class if it's already there immediately after the make_classes() call?

-John

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to