コード例 #1
0
ファイル: ClassMetadataInfo.php プロジェクト: noikiy/inovi
 /**
  * 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']);
 }