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

    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

    •  
      CommentAuthoradityamooley
     

    I too had same problem.

    • CommentAuthoriJyrki
     

    Workaround

    Call clear() before calling setByIds().

    Example:

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

    -jyrki