insert_update on association tables #22

Surt opened this Issue Sep 16, 2011 · 1 comment


None yet
2 participants

Surt commented Sep 16, 2011


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

@vrana vrana closed this in 3431a24 Sep 17, 2011


This comment has been minimized.

Show comment Hide comment

Surt Sep 19, 2011

Fast as hell!

Surt commented Sep 19, 2011

Fast as hell!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment