Not signed in (Sign In)
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthoriJyrki
    • CommentTimeAug 25th 2007 edited
     

    Hi again!

    It has been a while since I've posted to the forums. The newest patch for HABTM broke something, because updating record associations by setByIds doesn't delete the old ones anymore. There's no DELETE query generated.

    -jyrki

  1.  

    I too had same problem.

    • CommentAuthoriJyrki
    • CommentTimeAug 25th 2007
     

    Workaround

    Call clear() before calling setByIds().

    Example:

    $this->user->group->clear();
    $this->user->group->setByIds($this->params['groups']);
    

    -jyrki

Add your comments
    Username Password
  • Format comments as