Hello,

I am not sure what I am missing.  I have a Product with relation like:
    blocks => {
        type       => 'one to many',
        class      => 'Block',
        column_map => { product_id => 'product_id' },
    },

But when I try the "add_blocks" function it does not seem to exist:

use Product;
my $p = Product->new(id => 1)->load;
$p->add_blocks({name => "testing"});

Can't locate object method "add_blocks" via package "Product" 
Rose::DB::Object::AUTOLOAD('Product=HASH(0x1a7039c)', 'HASH(0x224b778)') 
called at ./product.t line 42

I walked through the Vendor/Product/Price demo in the 
Rose::DB::Object::Tutorial, and the add_prices function works for me there.  
I could not see any differences between my code and the demo.

Any ideas why an add_ function for a relationship would not get created?

Thanks!
-Cory

-------------------------------------------------------------------------
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