Sets exclude column names to be excluded when entity is saved. This will prevent data saved to MySQL generated columns which will trigger an error
@param string|array $identifier
320302
public function setExclude($exclude) {

		if(false === is_array($exclude)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type Array, "%s" given', __METHOD__, gettype($exclude)), E_USER_ERROR);
		}

		$this -> exclude = $exclude;

		return $this;
	}
1186056
public function register($identifier, $value)
    {
        parent::register($identifier, $value);

        $sql = sprintf(
            'INSERT INTO %s (`entityId`, `data`) set (`%s`, `%s`);',
            $this->mysql->quote($this->section),
            $this->mysql->quote($identifier),
            $this->decorator->normalizeValue($value)
        );
        $result = $this->mysql->query($sql);

        if (false === $result) {

            $this->registry[$this->section][$identifier] = null;

            $this->throwException(
                'Error occurred while registering an entity: ',
                $this->mysql->errorInfo()
            );
        }
    }
1181079
public function setIdentifier(string $identifier) : self
    {
        // Sanitize Identifier => remove space and slashes
        $this->identifier = strtr(
            ucwords(strtr(
                $identifier,
                ['_' => ' ', '/' => '-', '.' => '_ ', '\\' => '_ ']
            )),
            [' ' => '']
        );

        return $this;
    }
1267086
public function find($identifier, array $columns = ['*'])
    {
        return $this->mediator->transform($this->mediator(func_get_args()))->first();
    }
254441
public function unbindScopes(string $identifier): void
    {
        try {
            $schema = $this->getDatabaseSchema();
            $this->deleteBelongsToManyRelationshipIdentifiers(
                $schema->getClientsScopesTable(),
                $schema->getClientsScopesClientIdentityColumn(),
                $identifier
            );
        } catch (RepositoryException $exception) {
            $message = 'Unbinding client scopes failed.';
            throw new RepositoryException($message, 0, $exception);
        }
    }
43860
public function isRegistered($identifier)
    {
        if (false === parent::isRegistered($identifier)) {
            $entity = $this->getContentById($identifier);

            if (!empty($entity)) {
                return true;
            }
        } else {

            return true;
        }

        return false;
    }
27960
public function unbindScopes(int $identifier): void
    {
        try {
            $schema = $this->getDatabaseSchema();
            $this->deleteBelongsToManyRelationshipIdentifiers(
                $schema->getTokensScopesTable(),
                $schema->getTokensScopesTokenIdentityColumn(),
                $identifier
            );
        } catch (RepositoryException $exception) {
            $message = 'Unbinding token scopes failed.';
            throw new RepositoryException($message, 0, $exception);
        }
    }
1331196
public static function set($identifier, $object)
    {
        $objIdentifier = self::getIdentifier($identifier);
        $strIdentifier = (string) $objIdentifier;

        self::$_services->offsetSet($strIdentifier, $object);
    }
769146
public function addIdentifier($identifier)
    {
        $this->validateIdentifier($identifier);

        if (in_array($identifier, $this->identifiers)) {
            throw new InvalidIdentifierException('Error: Cannot add the identifier "'.$identifier.'" twice');
        }

        $this->identifiers[] = $identifier;
    }
1095706
public function ensureContentTypeGroupDoesntExist($identifier)
    {

        /** @var \eZ\Publish\API\Repository\ContentTypeService */
        $contentTypeService = $this->contentTypeService;

        // attempt to delete the content type group with the identifier
        try {
            $contentTypeService->deleteContentTypeGroup(
                $contentTypeService->loadContentTypeGroupByIdentifier($identifier)
            );
        } catch (ApiExceptions\NotFoundException $e) {
            // nothing to do
        }
    }
521970
public function setIdentifier(array $identifier)
    {
        $this->identifier = $identifier;
        $this->isIdentifierComposite = (count($this->identifier) > 1);
    }
1077573
public function offsetExists($identifier)
    {
        $keys   = $this->_parseIdentifier($identifier);
        $last   = count($keys)-1;
        $data   = &$this->_data;
        $result = false;

        foreach($keys as $index => $key)
        {
            if (!array_key_exists($key, $data)) {
                break;
            }

            if ($index < $last) {
                $data =& $data[$key];
            }
            else $result = true;
        }

        return $result;
    }
7260
public function ensureContentTypeDoesntExist($identifier)
    {
        $contentType = $this->loadContentTypeByIdentifier($identifier, false);
        if ($contentType) {
            $this->removeContentType($contentType);
        }
    }
846901
protected function _quoteIdentifier($identifier)
        {
            if (Arrays::is($identifier)) {
                $result = array_map(array($this, '_quoteOneIdentifier'), $identifier);

                return join(', ', $result);
            } else {
                return $this->_quoteOneIdentifier($identifier);
            }
        }
674667
public function remove($identifier)
    {
        if (!array_key_exists($identifier, $this->variables)) {
            throw new InvalidVariableException('Tried to remove a variable "' . $identifier . '" which is not stored in the context!', 1224479372);
        }
        unset($this->variables[$identifier]);
    }
759061
protected function _fetchExisting($identifier) {
        $this->_validateLoadable();
        $snippetModel = new Model_Snippet();
        $select = $snippetModel->select()
            ->where('identifier = ?', $identifier);
        $row = $snippetModel->fetchRow($select);
        return $row;
    }
577143
public function unregister($identifier)
    {
        $this->load();

        parent::unregister($identifier);
        $this->getDrupalCommonConnector()->variable_set($this->section, $this->registry[$this->section]);
    }