Esempio n. 1
0
 /**
  * Merges the constraints of the given metadata into this object.
  *
  * @param ClassMetadata $source
  */
 public function mergeConstraints(ClassMetadata $source)
 {
     foreach ($source->getPropertiesMetadata() as $property => $propertyMetadata) {
         foreach ($propertyMetadata->getConstraints() as $group => $constraints) {
             $this->addPropertyConstraints($property, $constraints, $group);
         }
     }
 }