public function addAttribute(AttributeMetadata $attribute) { $attribute->setOwner($this); $this->attributes[] = $attribute; }
protected function buildObjectMetadataFromAttribute(AttributeMetadata $attributeMetadata) { $args = $attributeMetadata->getArgs(); return new Metadata(new ObjectMetadataValueProvider($this->getMetadataValueFactory(), $this->getEm(), $args['entityType']), $attributeMetadata->getName()); }