Exclude object from result

@param   ChildCustomerGroup $customerGroup Object to remove from the list of results

@return ChildCustomerGroupQuery The current query, for fluid interface
194118
public function prune($customerGroup = null)
    {
        if ($customerGroup) {
            $this->addUsingAlias(CustomerGroupTableMap::ID, $customerGroup->getId(), Criteria::NOT_EQUAL);
        }

        return $this;
    }
636676
public function removeGroup(ChildGroup $group)
    {
        if ($this->getGroups()->contains($group)) { $skillGroup = new ChildSkillGroup();

            $skillGroup->setGroup($group);
            if ($group->isSkillsLoaded()) {
                //remove the back reference if available
                $group->getSkills()->removeObject($this);
            }

            $skillGroup->setSkill($this);
            $this->removeSkillGroup(clone $skillGroup);
            $skillGroup->clear();

            $this->collGroups->remove($this->collGroups->search($group));

            if (null === $this->groupsScheduledForDeletion) {
                $this->groupsScheduledForDeletion = clone $this->collGroups;
                $this->groupsScheduledForDeletion->clear();
            }

            $this->groupsScheduledForDeletion->push($group);
        }


        return $this;
    }
757190
protected function hasCustomerTransferProductLists(CustomerTransfer $customerTransfer): bool
    {
        $customerProductListCollection = $customerTransfer->getCustomerProductListCollection();

        if ($customerProductListCollection === null) {
            $customerProductListCollection = new CustomerProductListCollectionTransfer();

            $customerTransfer->setCustomerProductListCollection($customerProductListCollection);
        }

        return count($customerProductListCollection->getBlacklistIds()) > 0
            && count($customerProductListCollection->getWhitelistIds()) > 0;
    }
894984
public function getCustomer($customerId)
    {
        /** @var CustomerFbApi $response */
        $response = $this->call(new Request('customer.get', array('customer_id' => $customerId)), 'DVelopment\FastBill\Model\CustomerFbApi');
        $customers = $response->getResponse()->getCustomers();

        return reset($customers);
    }
91961
public function deleteByCustomerId($customerId)
    {
        $connection = $this->getConnection();
        $connection->delete($this->getMainTable(), $connection->quoteInto('customer_id = ?', $customerId));
    }
693796
public function delete($customer, $forceDelete = false)
    {
        $id = null;
        if ($customer instanceof HpsPayPlanCustomer) {
            $id = $customer->customerKey;
        } else {
            $id = $customer;
        }

        $data = array(
            'forceDelete' => $forceDelete,
        );
        return $this->doRequest($data, array(
            'verb'     => 'DELETE',
            'endpoint' => 'customers/'.$id,
        ));
    }
733712
public function removeGroup($parentName, $childName)
    {
        $parentDn = $this->dn($parentName);

        $childDn = $this->dn($childName);

        if (is_string($parentDn) && is_string($childDn)) {
            $del = [];
            $del['member'] = $childDn;

            return $this->connection->modDelete($parentDn, $del);
        }

        return false;
    }
76624
public function removeFromList()
    {
        // Keep the list modification query for the save() transaction
        $this->sortableQueries[] = array(
            'callable'  => array('\CustomerGroup\Model\CustomerGroupQuery', 'sortableShiftRank'),
            'arguments' => array(-1, $this->getPosition() + 1, null)
        );
        // remove the object from the list
        $this->setPosition(null);


        return $this;
    }
22376
public function list(
        CustomerFilters $customerFilters = null,
        CustomerRequest $customerRequest = null
    ): PagedCollection {
        $uri = '/v2/customers';
        if ($customerFilters) {
            $params = $customerFilters->getParams();
            if (!empty($params)) {
                $uri .= '?'.http_build_query($params);
            }
        }

        return $this->loadCustomers(
            $uri,
            $customerRequest ?: new CustomerRequest()
        );
    }
883078
public function addCustomer(Customer $l)
    {
        if ($this->collCustomers === null) {
            $this->initCustomers();
            $this->collCustomersPartial = true;
        }

        if (!in_array($l, $this->collCustomers->getArrayCopy(), true)) { // only add it if the **same** object is not already associated
            $this->doAddCustomer($l);

            if ($this->customersScheduledForDeletion and $this->customersScheduledForDeletion->contains($l)) {
                $this->customersScheduledForDeletion->remove($this->customersScheduledForDeletion->search($l));
            }
        }

        return $this;
    }
1022262
public function removeRole(ChildRole $role)
    {
        if ($this->getRoles()->contains($role)) { $rolePermission = new ChildRolePermission();

            $rolePermission->setRole($role);
            if ($role->isPermissionsLoaded()) {
                //remove the back reference if available
                $role->getPermissions()->removeObject($this);
            }

            $rolePermission->setPermission($this);
            $this->removeRolePermission(clone $rolePermission);
            $rolePermission->clear();

            $this->collRoles->remove($this->collRoles->search($role));

            if (null === $this->rolesScheduledForDeletion) {
                $this->rolesScheduledForDeletion = clone $this->collRoles;
                $this->rolesScheduledForDeletion->clear();
            }

            $this->rolesScheduledForDeletion->push($role);
        }


        return $this;
    }
47491
public function removeCustomerAttributes()
    {
        foreach ($this->_customerAttributes as $code => $attr) {
            $this->removeAttribute('customer', $code);
        }

        return $this;
    }
96501
public function addDefaultCustomerGroupToCustomer(CustomerEvent $event)
    {
        $defaultCustomerGroup = CustomerGroupQuery::create()->findOneByIsDefault(true);
        if (null === $defaultCustomerGroup) {
            return;
        }

        (new CustomerCustomerGroupQuery())
            ->filterByCustomerId($event->getCustomer()->getId())
            ->filterByCustomerGroupId($defaultCustomerGroup->getId())
            ->findOneOrCreate()
            ->save();
    }
181577
public function removeUser(ChildUser $user)
    {
        if ($this->getUsers()->contains($user)) { $userRole = new ChildUserRole();

            $userRole->setUser($user);
            if ($user->isRolesLoaded()) {
                //remove the back reference if available
                $user->getRoles()->removeObject($this);
            }

            $userRole->setRole($this);
            $this->removeUserRole(clone $userRole);
            $userRole->clear();

            $this->collUsers->remove($this->collUsers->search($user));

            if (null === $this->usersScheduledForDeletion) {
                $this->usersScheduledForDeletion = clone $this->collUsers;
                $this->usersScheduledForDeletion->clear();
            }

            $this->usersScheduledForDeletion->push($user);
        }


        return $this;
    }
1073341
public function deleteCustomer($customerId)
    {
        $requestData = new Delete\RequestData($customerId);
        $request = new Delete\Request($requestData);

        return $this->sendRequest($request, Delete\ApiResponse::class);
    }
402013
public function removeAllowedUserGroup(UserGroup $allowedUserGroup)
    {
        if ($this->allowedUserGroups->contains($allowedUserGroup) === true) {
            $this->allowedUserGroups->removeElement($allowedUserGroup);
        }

        return $this;
    }
401585
private function hydrateCustomerWithSubEntities(
        HalResource $customerResource,
        CustomerRequest $customerRequest
    ): Customer {
        $customerLoader = new CustomerLoader(
            $this->restClient,
            $customerResource,
            $customerRequest->getLinks()
        );
        $customerLoader->load();

        return $customerResource->getEntity();
    }