Skip to content

BelongsTo relationship issue #487

@msucevan

Description

@msucevan

Basically, when I'm using BelongsTo field outside the addLayout is working good.

But when I'm trying to use a Flexible field and I'm trying to use BelongsTo inside addLayout method this is not working.

            Flexible::make(__('Parameter'), 'parameter')
                ->addLayout(__('Parameter'), 'parameter', [
                    BelongsTo::make(__('Param'), 'param', Param::class)
                        ->sortable()
                        ->rules('required'),
                ])
                ->button(__('Add Parameter'))

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions