lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php
private function convertJoinTableAnnotationToJoinTableMetadata(
        Annotation\JoinTable $joinTableAnnot
    ) : Mapping\JoinTableMetadata {
        $joinTable = new Mapping\JoinTableMetadata();

        if (! empty($joinTableAnnot->name)) {
            $joinTable->setName($joinTableAnnot->name);
        }

        if (! empty($joinTableAnnot->schema)) {
            $joinTable->setSchema($joinTableAnnot->schema);
        }

        foreach ($joinTableAnnot->joinColumns as $joinColumnAnnot) {
            $joinColumn = $this->convertJoinColumnAnnotationToJoinColumnMetadata($joinColumnAnnot);

            $joinTable->addJoinColumn($joinColumn);
        }

        foreach ($joinTableAnnot->inverseJoinColumns as $joinColumnAnnot) {
            $joinColumn = $this->convertJoinColumnAnnotationToJoinColumnMetadata($joinColumnAnnot);

            $joinTable->addInverseJoinColumn($joinColumn);
        }

        return $joinTable;
    }
private function convertJoinTableAnnotationToJoinTableMetadata(
        Annotation\JoinTable $joinTableAnnot
    ) : Mapping\JoinTableMetadata {
        $joinTable = new Mapping\JoinTableMetadata();

        if (! empty($joinTableAnnot->name)) {
            $joinTable->setName($joinTableAnnot->name);
        }

        if (! empty($joinTableAnnot->schema)) {
            $joinTable->setSchema($joinTableAnnot->schema);
        }

        foreach ($joinTableAnnot->joinColumns as $joinColumnAnnot) {
            $joinColumn = $this->convertJoinColumnAnnotationToJoinColumnMetadata($joinColumnAnnot);

            $joinTable->addJoinColumn($joinColumn);
        }

        foreach ($joinTableAnnot->inverseJoinColumns as $joinColumnAnnot) {
            $joinColumn = $this->convertJoinColumnAnnotationToJoinColumnMetadata($joinColumnAnnot);

            $joinTable->addInverseJoinColumn($joinColumn);
        }

        return $joinTable;
    }
private function convertJoinTableAnnotationToJoinTableMetadata ( Annotation \ JoinTable $ joinTableAnnot ) : Mapping \ JoinTableMetadata { $ joinTable = new Mapping \ JoinTableMetadata ( ) ; if ( ! empty ( $ joinTableAnnot -> name ) ) { $ joinTable -> setName ( $ joinTableAnnot -> name ) ; } if ( ! empty ( $ joinTableAnnot -> schema ) ) { $ joinTable -> setSchema ( $ joinTableAnnot -> schema ) ; } foreach ( $ joinTableAnnot -> joinColumns as $ joinColumnAnnot ) { $ joinColumn = $ this -> convertJoinColumnAnnotationToJoinColumnMetadata ( $ joinColumnAnnot ) ; $ joinTable -> addJoinColumn ( $ joinColumn ) ; } foreach ( $ joinTableAnnot -> inverseJoinColumns as $ joinColumnAnnot ) { $ joinColumn = $ this -> convertJoinColumnAnnotationToJoinColumnMetadata ( $ joinColumnAnnot ) ; $ joinTable -> addInverseJoinColumn ( $ joinColumn ) ; } return $ joinTable ; }
Parse the given JoinTable as JoinTableMetadata
Parse the given JoinTable as JoinTableMetadata