Example #1
0
 /**
  * Merges the constraints of the given metadata into this object.
  *
  * @param PropertyMetadata $source
  */
 public function mergeConstraints(PropertyMetadata $source)
 {
     foreach ($source->getConstraints() as $group => $constraints) {
         $this->addConstraints($constraints, $group);
     }
 }