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