This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

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

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.