@param string $metaSetId

@return $this
160081
public function removeMetaSet($metaSetId)
    {
        if (in_array($metaSetId, $this->metasets)) {
            unset($this->metasets[array_search($metaSetId, $this->metasets)]);
        }

        return $this;
    }
149884
public function setId($maniaLinkId)
    {
        $this->maniaLinkId = (string)$maniaLinkId;
        if ($this->maniaLinkId && !$this->name) {
            $this->setName($this->maniaLinkId);
        }
        return $this;
    }
868408
public function setIndex($index): self
    {
        if ($index instanceof Index) {
            $index = $index->getName();
        }
        $this->_metadata['_index'] = $index;

        return $this;
    }
16736
public function setTableId($tableId): Table
    {
        $this->tableId = $tableId;
        $this->options['table']['id'] = $tableId;

        return $this;
    }
419488
public function setAttributeSetFilter($setId)
    {
        if (is_array($setId)) {
            if (!empty($setId)) {
                $this->join(
                    ['entity_attribute' => $this->getTable('eav_entity_attribute')],
                    'entity_attribute.attribute_id = main_table.attribute_id',
                    []
                );
                $this->addFieldToFilter('entity_attribute.attribute_set_id', ['in' => $setId]);
                $this->addAttributeGrouping();
            }
        } elseif ($setId) {
            $this->join(
                ['entity_attribute' => $this->getTable('eav_entity_attribute')],
                'entity_attribute.attribute_id = main_table.attribute_id',
                []
            );
            $this->addFieldToFilter('entity_attribute.attribute_set_id', $setId);
        }

        return $this;
    }
643240
public function setMeta($meta, $value = null)
	{
		$metas = is_array($meta) ? $meta : array($meta => $value);
		
		foreach ($metas as $m => $v) {
			if (!is_object($m)) {
				$m = $this->findMetaByNameOrCreate($m);
			}
			
			if (!$m || !$m instanceof Eloquent) {
				continue;
			}
			
			if ($this->hasMeta($m)) {
				if (is_null($v)) {
					$this->unsetMeta($m);
					continue;
				}
				
				$attributes = array(
					'value'           => $v,
					'meta_updated_at' => date('Y-m-d H:i:s'),
				);
				$this->metas()->updateExistingPivot($m->id, array_merge($this->metableTableSyncAttributes(), $attributes));
				$this->metas->find($m->id)->pivot->value = $v;
				$this->metas->find($m->id)->pivot->meta_updated_at = $attributes['meta_updated_at'];
			}
			else {
				if (is_null($v)) {
					continue;
				}
				
				$this->metas()->attach($m, array_merge($this->metableTableSyncAttributes(), array(
					'value'           => $v,
					'meta_created_at' => date('Y-m-d H:i:s'),
					'meta_updated_at' => date('Y-m-d H:i:s'),
				)));
				
				$m->increment('num_items');
				
				$this->metas->add($m);
			}
		}
		
		return $this;
	}
448951
public function set($name, $content, $metaType="name", $overwrite = true)
    {
        if($content) {
            // strip html tags and encode html entities
            $content = htmlspecialchars(strip_tags($content));
            if($overwrite) {
                // limit length on description tag
                if ($name == 'description' || $name == "og:description") {
                    $content = str_limit($content, 300);
                }
                // allowed duplicates meta tags
                if (in_array($name, $this->allowedDuplicateMeta)) {
                    $this->metaList[$name][] = [
                      'type' => $metaType,
                      'content' => $content
                    ];
                } else {
                    $this->metaList[$name] = [
                      'type' => $metaType,
                      'content' => $content
                    ];
                }
            }
        }

        return $this;
    }
349652
function getMeta($metaKey = null)
    {
        if ($metaKey !== null)
            return (isset($this->meta[$metaKey])) ? $this->meta[$metaKey] : null;

        return $this->meta;
    }
942547
protected function findOneByMetaSetAndTarget(MetaSetInterface $metaSet, $target)
    {
        $metaDatas = $this->findByMetaSetAndTarget($metaSet, $target);

        if (!count($metaDatas)) {
            return null;
        }

        return current($metaDatas);
    }
1311334
public function setMeta($name, $content)
    {
        $c = $this->filterXPath('descendant-or-self::meta[@name = \'' . $name . '\']');
        if (count($c) == 0) {
            $node = $this->dom->createElement('meta');
            $node->setAttribute('name', $name);
            $this->getHeadNode()->appendChild($node);
            $c->addNode($node);
        }
        $c->setAttribute('content', $content);
    }
1090058
public function whereAnyMetaId(array $metas)
	{
		$filters = array();
		
		foreach ($metas as $meta => $data) {
			$value = is_array($data) ? Arr::get($data, 0) : $data;
			$operator = is_array($data) ? Arr::get($data, 1, '=') : '=';
			
			$filters[] = array('id' => $meta, 'value' => $value, 'operator' => $operator);
		}
		
		$this->filters[]['metas'] = $filters;
		
		return $this;
	}
1368687
public function setMetaDescription($metaDescription, $locale = null)
    {
        $this->translate($locale, false)->setMetaDescription($metaDescription);
        $this->mergeNewTranslations();

        return $this;
    }
205037
public function withMetaId($id)
	{
		foreach (func_get_args() as $arg) {
			$meta_ids = (array) $arg;
			
			foreach ($meta_ids as $meta_id) {
				$this->filters[]['metas'][] = array('id' => $meta_id);
			}
		}
		
		return $this;
	}
1246779
public function set($name, $value) {
		\Asgard\Common\ArrayUtils::set($this->metas, $name, $value);
		return $this;
	}
963437
public static function meta(Meta $m)
    {
        if ($m->getColumn() !== "id") {
            self::checkDefaultSet($m);
            if (!empty($m->getValue()) && !in_array($m->getKey(), ["extend", "extend_add", "list", "selecao", "checkbox_rel"])) {
                self::checkRegular($m);
                self::convertValues($m);
                self::checkType($m);
                self::checkSize($m);
                self::checkValidate($m);
                self::checkValues($m);
            }
        }
    }
878599
private function register(Entity $meta): self
    {
        $this->mapping = $this->mapping->put((string) $meta->class(), $meta);

        return $this;
    }
1224074
def set_meta(self, meta_data):
        '''
        
        '''
        if not (isinstance(meta_data, ps.PMap) or isinstance(meta_data, IMap)):
            meta_data = ps.pmap(meta_data)
        new_cnode = copy.copy(self)
        object.__setattr__(new_cnode, 'meta_data', meta_data)
        return new_cnode