Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthortom
     

    Hi,

    is there a nice, simple way to clear a belongs_to association, ie. associate nothing?

    regards, Tom

    • CommentAuthortom
     

    Ah! Found it out:

    $model->associated_id = 0;
    $model->save();
    

    seems to work. :)