compileLazy example

return;
        }

        $this->registry = $registry;

        parent::compile($registry);
    }

    public function getReferenceDefinition(): EntityDefinition
    {
        if ($this->referenceDefinition === null) {
            $this->compileLazy();
        }

        return $this->referenceDefinition;
    }

    public function getReferenceField(): string
    {
        return $this->referenceField;
    }

    public function getReferenceClass(): string
    {
$propertyName = lcfirst(implode('', $propertyName));

        parent::__construct($storageName$propertyName, VersionDefinition::class);

        $this->versionReferenceClass = $definition;
        $this->storageName = $storageName;
    }

    public function getVersionReferenceDefinition(): EntityDefinition
    {
        if ($this->versionReferenceDefinition === null) {
            $this->compileLazy();
        }

        return $this->versionReferenceDefinition;
    }

    public function getVersionReferenceClass(): string
    {
        if ($this->versionReferenceClass === null) {
            $this->compileLazy();
        }

        
parent::compile($registry);
    }

    public function getStorageName(): string
    {
        return $this->storageName;
    }

    public function getReferenceDefinition(): EntityDefinition
    {
        if ($this->referenceDefinition === null) {
            $this->compileLazy();
        }

        return $this->referenceDefinition;
    }

    public function getReferenceField(): string
    {
        return $this->referenceField;
    }

    public function getExtractPriority(): int
    {
private readonly string $sourceColumn = 'id',
        string $referenceField = 'id'
    ) {
        parent::__construct($propertyName);
        $this->referenceClass = $mappingDefinition;
        $this->referenceField = $referenceField;
    }

    public function getToManyReferenceDefinition(): EntityDefinition
    {
        if ($this->toManyDefinition === null) {
            $this->compileLazy();
        }

        \assert($this->toManyDefinition !== null);

        return $this->toManyDefinition;
    }

    public function getMappingDefinition(): EntityDefinition
    {
        if ($this->mappingDefinition === null) {
            $this->compileLazy();
        }
Home | Imprint | This part of the site doesn't use cookies.