private function DeleteOldGroups(array $selGroupIDs)
    {
        $tblMmg = MemberMembergroup::Schema()->Table();
        $sql = Access::SqlBuilder();
        $where = $sql->Equals($tblMmg->Field('Member'), $sql->Value($this->member->GetID()));
        if (count($selGroupIDs) > 0)
        {
            $selectedList = $sql->InListFromValues($selGroupIDs);
            $where = $where->And_($sql->NotIn($tblMmg->Field('MemberGroup'), $selectedList));
        }
        MemberMembergroup::Schema()->Delete($where);
    }
private function DeleteOldGroups(array $selGroupIDs)
    {
        $tblMmg = MemberMembergroup::Schema()->Table();
        $sql = Access::SqlBuilder();
        $where = $sql->Equals($tblMmg->Field('Member'), $sql->Value($this->member->GetID()));
        if (count($selGroupIDs) > 0)
        {
            $selectedList = $sql->InListFromValues($selGroupIDs);
            $where = $where->And_($sql->NotIn($tblMmg->Field('MemberGroup'), $selectedList));
        }
        MemberMembergroup::Schema()->Delete($where);
    }
private function DeleteOldGroups ( array $ selGroupIDs ) { $ tblMmg = MemberMembergroup :: Schema ( ) -> Table ( ) ; $ sql = Access :: SqlBuilder ( ) ; $ where = $ sql -> Equals ( $ tblMmg -> Field ( 'Member' ) , $ sql -> Value ( $ this -> member -> GetID ( ) ) ) ; if ( count ( $ selGroupIDs ) > 0 ) { $ selectedList = $ sql -> InListFromValues ( $ selGroupIDs ) ; $ where = $ where -> And_ ( $ sql -> NotIn ( $ tblMmg -> Field ( 'MemberGroup' ) , $ selectedList ) ) ; } MemberMembergroup :: Schema ( ) -> Delete ( $ where ) ; }
Deletes the unselected group ids
@param array $exGroupIDs Currently assigned group ids
@param array $selGroupIDs Selected group ids
Deletes the unselected group ids