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

Laurynas
Laurynas

can any one explain for me how relations works in backend? i wrote in my model

public $hasOne = [ 'roomdescription' => [ '\Randman\Random\Models\RoomDescription', 'key' => 'rooms2_id', 'otherKey' => 'id' ], ];

and in my columns.yaml

roomdescription: label: 'description' relation: roomdescription select: decription type: text

and in my fields.yaml

roomdescription: label: description span: auto oc.commentPosition: '' type: number

what im missing because i get extra info backend table, but when i try to edit or insert new record to db i get just info in my major table but not to additional...

Last updated

1-1 of 1

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