Beispiel #1
0
 /**
  * Map Embedded Class
  *
  * @param array $mapping
  * @throws MappingException
  * @return void
  */
 public function mapEmbedded(array $mapping)
 {
     if ($this->isEmbeddedClass) {
         throw MappingException::noEmbeddablesInEmbeddable($this->name);
     }
     $this->assertFieldNotMapped($mapping['fieldName']);
     $this->embeddedClasses[$mapping['fieldName']] = array('class' => $this->fullyQualifiedClassName($mapping['class']), 'columnPrefix' => $mapping['columnPrefix']);
 }