Exemple #1
0
 public function initializeFormAnnotations()
 {
     $reader = new Annotations();
     $formProperties = $reader->getProperties($this);
     foreach ($formProperties as $key => $property) {
         //$formProperty = isset($formProperties[$key]) ? $formProperties[$key] : null;
         $element = $this->createElementByProperty($key, $property);
         if ($element && $element instanceof ElementInterface) {
             $this->add($element);
         }
     }
     return $this;
 }