Sindbad~EG File Manager

Current Path : /opt/nginxhttpd_/vendor/doctrine/orm/src/Mapping/Builder/
Upload File :
Current File : //opt/nginxhttpd_/vendor/doctrine/orm/src/Mapping/Builder/OneToManyAssociationBuilder.php

<?php

declare(strict_types=1);

namespace Doctrine\ORM\Mapping\Builder;

/**
 * OneToMany Association Builder
 *
 * @link        www.doctrine-project.com
 */
class OneToManyAssociationBuilder extends AssociationBuilder
{
    /**
     * @phpstan-param array<string, string> $fieldNames
     *
     * @return $this
     */
    public function setOrderBy(array $fieldNames)
    {
        $this->mapping['orderBy'] = $fieldNames;

        return $this;
    }

    /**
     * @param string $fieldName
     *
     * @return $this
     */
    public function setIndexBy($fieldName)
    {
        $this->mapping['indexBy'] = $fieldName;

        return $this;
    }

    /** @return ClassMetadataBuilder */
    public function build()
    {
        $mapping = $this->mapping;
        if ($this->joinColumns) {
            $mapping['joinColumns'] = $this->joinColumns;
        }

        $cm = $this->builder->getClassMetadata();
        $cm->mapOneToMany($mapping);

        return $this->builder;
    }
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists