public function mapChild(array $mapping, ClassMetadata $inherited = null)
 {
     if (empty($mapping['cascade'])) {
         $mapping['cascade'] = 0;
     }
     $mapping['type'] = 'child';
     $mapping = $this->validateAndCompleteFieldMapping($mapping, $inherited, false, 'nodeName');
     if ($exception = $this->isValidNodename($mapping['nodeName'])) {
         throw MappingException::illegalChildName($this->name, $mapping['fieldName'], $mapping['nodeName'], $exception);
     }
     $this->childMappings[$mapping['fieldName']] = $mapping['fieldName'];
 }