$m = new self ();
$query = $m->getModelsManager ()->createBuilder ()->addFrom ( 'UserRoles' )->where ( 'UserID = :id:', array (
'id' => 1
) )->inWhere ( 'RoleID', $roleIds )->getQuery ();
$query->setType ( Query::TYPE_DELETE );
$result = $query->execute ();
The query setType not work, It also returns select result. If this is a bug?