本文整理汇总了PHP中Doctrine\Common\Persistence\Mapping\ClassMetadata::wakeupReflection方法的典型用法代码示例。如果您正苦于以下问题:PHP ClassMetadata::wakeupReflection方法的具体用法?PHP ClassMetadata::wakeupReflection怎么用?PHP ClassMetadata::wakeupReflection使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Doctrine\Common\Persistence\Mapping\ClassMetadata
的用法示例。
在下文中一共展示了ClassMetadata::wakeupReflection方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: wakeupReflection
/** {@inheritdoc} */
protected function wakeupReflection(ClassMetadata $class, ReflectionService $reflService)
{
if (!$class instanceof EntityMetadata) {
throw new \LogicException('Metadata is not supported');
}
/** @var EntityMetadata $class */
$class->wakeupReflection($reflService);
}
示例2: wakeupReflection
/**
* {@inheritDoc}
*/
protected function wakeupReflection(ClassMetadataInterface $class, ReflectionService $reflService)
{
/* @var $class ClassMetadata */
$class->wakeupReflection($reflService);
}
示例3: wakeupReflection
/**
* @inheritdoc
*/
protected function wakeupReflection(ClassMetadataInfo $class, ReflectionService $reflService)
{
/** @var ClassMetadata $class */
$class->wakeupReflection($reflService);
}
示例4: wakeupReflection
/**
* {@inheritDoc}
*/
protected function wakeupReflection(BaseClassMetadata $class, ReflectionService $reflService)
{
/* @var $class ClassMetadata */
$class->wakeupReflection($reflService);
$this->completeMappingTypeValidation($class->getName(), $class);
$xmlNamespace = empty($class->xmlNamespaces) ? '' : $class->xmlNamespaces[0]['url'];
foreach ($class->xmlNamespaces as $namespaceData) {
if (empty($namespaceData['prefix'])) {
$xmlNamespace = $namespaceData['url'];
}
}
$xmlName = $class->getXmlName();
if (!empty($class->parent)) {
$parent = $this->getMetadataFor($class->parent);
if (!empty($parent)) {
$this->alternativeClassMap[$parent->getName()][$xmlNamespace] = $class->getName();
}
}
if (!$class->isMappedSuperclass) {
$this->xmlToClassMap[$xmlName][$xmlNamespace] = $class->getName();
}
if ($this->isEntity($class)) {
foreach ($class->getFieldMappings() as $fieldMapping) {
if (!empty($fieldMapping['wrapper'])) {
$wrapperXmlName = $fieldMapping['wrapper'];
$types = Type::getTypesMap();
$type = (string) $fieldMapping['type'];
if (isset($types[$type])) {
$this->wrapperXmlToClassMap[$wrapperXmlName][$class->getXmlName()] = NULL;
} else {
$this->wrapperXmlToClassMap[$wrapperXmlName][$class->getXmlName()] = $fieldMapping['type'];
}
}
}
}
}