Nextras\Orm\Entity\Reflection\MetadataParser::loadProperties PHP Méthode

loadProperties() protected méthode

protected loadProperties ( &$fileDependencies )
    protected function loadProperties(&$fileDependencies)
    {
        $classTree = [$current = $this->reflection->name];
        while (($current = get_parent_class($current)) !== false) {
            $classTree[] = $current;
        }
        foreach (array_reverse($classTree) as $class) {
            $reflection = ClassType::from($class);
            $fileDependencies[] = $reflection->getFileName();
            $this->currentReflection = $reflection;
            $this->parseAnnotations($reflection);
        }
    }

Usage Example

 protected function loadProperties(&$fileDependencies)
 {
     parent::loadProperties($fileDependencies);
     foreach ($this->inverseModifier as $inverseModifier) {
         if (in_array($this->metadata->className, $inverseModifier::getEntityClassNames())) {
             call_user_func([$inverseModifier, 'modifyProperties'], $this->metadata, $this->entityClassesMap);
         }
     }
 }