omdreamreg6295
omdreamreg6295

Hello!

There are 2 models: question and answer.

Answer belongs to Question:

public $belongsTo = [
        'question_parent' => ['Acme\Author\Models\Question', 'key' => 'question_id'],
];

Now I can get 'question_id' only on update form. Is it possible to pass 'question_id' or another field value from Question to Answer form on render for new record?

Thanks!

Last updated

1-1 of 1