Exclude object from result

@param   License $license Object to remove from the list of results

@return LicenseQuery The current query, for fluid interface
199710
public function prune($license = null)
    {
        if ($license) {
            $this->addUsingAlias(LicensePeer::ID, $license->getId(), Criteria::NOT_EQUAL);
        }

        return $this;
    }
493377
public static function removeInstance($alias = null)
	{
		if('' === static::$driverName)
		{
			static::init();
		}
		if(null === $alias)
		{
			$alias = self::defaultAlias();
		}
		if (isset(self::$instances[static::$driverName][$alias]))
		{
			unset(self::$instances[static::$driverName][$alias]);
		}
	}
548636
private function _delete_licenses( $store = true ) {
            $this->_logger->entrance();

            $all_licenses = self::get_all_licenses();

            unset( $all_licenses[ $this->_module_id ] );

            self::$_accounts->set_option( 'all_licenses', $all_licenses, $store );
        }
1130385
function _update_site_license( $new_license ) {
            $this->_logger->entrance();

            $this->_license = $new_license;

            if ( ! is_object( $new_license ) ) {
                $this->_site->license_id = null;
                $this->_sync_site_subscription( null );

                return $this->_license;
            }

            $this->_site->license_id = $this->_license->id;

            if ( ! is_array( $this->_licenses ) ) {
                $this->_licenses = array();
            }

            $is_license_found = false;
            for ( $i = 0, $len = count( $this->_licenses ); $i < $len; $i ++ ) {
                if ( $new_license->id == $this->_licenses[ $i ]->id ) {
                    $this->_licenses[ $i ] = $new_license;

                    $is_license_found = true;
                    break;
                }
            }

            // If new license just append.
            if ( ! $is_license_found ) {
                $this->_licenses[] = $new_license;
            }

            $this->_sync_site_subscription( $new_license );

            return $this->_license;
        }
360915
public function setLicense(array $license)
    {
        if (!array_key_exists('name', $license) || !array_key_exists('key', $license)) {
            throw new Exception\InvalidArgumentException(__METHOD__ . " In order to set a libxl license you must provide an associative array with 'name' and 'key' set.");
        }
        $this->license = $license;
    }
619701
public function removeCustomerNo($custNo)
    {
        $this->_checkArgument($custNo, 'custNo');

        $digestSecret = self::digest(
            $this->colon($this->_eid, $custNo, $this->_secret)
        );

        $paramList = array(
            $custNo,
            $this->_eid,
            $digestSecret
        );

        self::printDebug('remove_customer_no', $paramList);

        $result = $this->xmlrpc_call('remove_customer_no', $paramList);

        return ($result == 'ok');
    }
989766
public function prune($dealer = null)
    {
        if ($dealer) {
            $this->addUsingAlias(DealerTableMap::ID, $dealer->getId(), Criteria::NOT_EQUAL);
        }

        return $this;
    }
1285254
public function excludeIdField($exclude = true)
    {
        @trigger_error(__METHOD__ . ' has been deprecated in favor of excludeFields.', E_USER_DEPRECATED);

        return $this->field('_id')->expression( ! $exclude);
    }
1004156
protected function excludeOne(DataQuery $query)
    {
        $this->model = $query->applyRelation($this->relation);

        $predicate = sprintf("%s %s ?", $this->getDbName(), $this->getInverseOperator());
        $clause = [$predicate => $this->getDbFormattedValue()];

        return $this->aggregate ?
            $this->applyAggregate($query, $clause) :
            $query->where($clause);
    }
1356700
public function prune($source = null)
    {
        if ($source) {
            $this->addUsingAlias(SourceTableMap::COL_ID, $source->getId(), Criteria::NOT_EQUAL);
        }

        return $this;
    }
853112
public static License unserializeLicense(final String license) throws IOException {
		final ObjectMapper mapper = new ObjectMapper();
        mapper.disable(MapperFeature.USE_GETTERS_AS_SETTERS);
		return mapper.readValue(license, License.class);
	}
335410
public function prune($maprating = null)
    {
        if ($maprating) {
            $this->addUsingAlias(MapratingTableMap::COL_ID, $maprating->getId(), Criteria::NOT_EQUAL);
        }

        return $this;
    }
1343701
public function update_license( $license, $keep_status = false ) {
		$option   = get_option( 'sekisyo_license', [] );
		$validity = $this->validate( $license );
		$failed   = $this->failed;
		if ( is_wp_error( $validity ) ) {
			$failed ++;
		} else {
			$failed = 0;
		}
		$prev_status           = $this->valid;
		$cur_status            = is_wp_error( $validity ) ? false : true;
		$option[ $this->guid ] = [
			'license'      => $license,
			'valid'        => ( $keep_status && ! $cur_status ) ? $prev_status : $cur_status,
			'last_checked' => current_time( 'mysql', true ),
			'failed'       => $failed,
		];
		update_option( 'sekisyo_license', $option );

		return is_wp_error( $validity ) ? $validity : true;
	}
379229
public function withLicence($licence)
    {
        Assertion::string($licence);
        Assertion::notBlank($licence);

        $instance = clone $this;

        $instance->licence = $licence;

        return $instance;
    }
39542
public function alias($alias)
    {
        $this->alias = $alias;

        if (!in_array('`' . $alias . '`.*', $this->select)) {
            $this->select[] = '`' . $alias . '`.*';
        }

        if (in_array('`' . $this->table . '`.*', $this->select)) {
            unset($this->select[array_search('`' . $this->table . '`.*', $this->select)]);
        }

        return $this;
    }
1024015
public function getIndividualLicense(string $license): array
    {
        return $this->getApi()->setAccept('application/vnd.github.drax-preview+json')->request($this->getApi()
                                                                                                    ->sprintf('/licenses/:license',
                                                                                                        $license));
    }
872548
public function exclude(DataQuery $query)
    {
        if (($key = array_search('not', $this->modifiers)) !== false) {
            unset($this->modifiers[$key]);
            return $this->apply($query);
        }
        if (is_array($this->value)) {
            return $this->excludeMany($query);
        } else {
            return $this->excludeOne($query);
        }
    }