vrana/notorm

insert_update on association tables

Closed this issue · 1 comments

Surt commented

Hi,

i was triying to insert_update on a referenced table and seems that when inserted it does not use the reference

content 1-------many content_language

    $onecontent = $db->content[10];
    $onecontent->content_language()->insert(array('alias'=>'atest'));  // working, resulting row is referencing the content 10
    $contenidos->content_language()->insert_update(array('alias'=>'anothertest'), array('title'=>'anothertest', 'alias'=>'anothertest'));    // not working
Surt commented

Fast as hell!