예제 #1
0
 public function extractConstraints(PropertyMetadata $propertyMetadata)
 {
     foreach ($propertyMetadata->getConstraints() as $constraint) {
         foreach ($this->defaults['_constraints'] as $key => $value) {
             try {
                 $this->defaults['_constraints'][$key] = @$constraint->{$key};
             } catch (InvalidOptionsException $e) {
             }
         }
     }
 }