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

vimre
vimre

Dear All,

Do you have any recommendation or idea how could I create a list or a table in a Backend form that shows records that related to the given model via hasManyThrough relation?
Is it possible to do it somehow?

As I see relation controller can do it only in case of one-to-one and many-to-many relations but not on hasManyThrough relation.
Is there any other way to do it?

Thanks in advance for your help!

daftspunky
daftspunky

Hello vimre,

hasManyThrough support will be added in v2.1.5. It will be released in a couple of days.

Thanks!

I90Runner
I90Runner

Could someone please point me to where I can find step by step tutorial on implementing hasMany relationship?. I want to extend user plugin and add multiple companies they want to follow. Thanks in advance.

grafik67640
grafik67640

Hello, i have a specific case and dunno how to implement it properly;

let's say, we have Models: Order, Product and Producer.

Producer can have many Products (relation manyToMany),

Order can have many Products (relation manyToMany),

Product belongs to one Producer (relation oneToMany),

Product belongs to many Orders (relation manyToMany)

How to get list of producers in a singular Order model, trough order products? I need to list all producers of order, and all products for every producer in my controller...

Last updated

1-4 of 4

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