예제 #1
0
 /**
  * Load all of the @XmlValue annotations
  * 
  * @param ClassMetadata $metadata
  */
 protected function loadClassValue(ClassMetadata $metadata)
 {
     $reflClass = $metadata->getReflectionClass();
     foreach ($reflClass->getProperties() as $property) {
         foreach ($this->reader->getPropertyAnnotations($property) as $annotation) {
             if ($annotation instanceof XmlValue) {
                 $metadata->setValue($property->getName());
             }
         }
     }
 }