Hello, I have three tables in db PRODUCT, BRAND and COLLECTION.
Relation is:
BRAND hasMany PRODUCT and BRAND hasMany COLLECTION
COLLECTION hasMany PRODUCT and COLLECTION belongsTo BRAND
PRODUCT belongsTo BRAND and PRODUCT belongsTo COLLECTION
When i add new product i choose barand and when i choose collection i nead to have dropdown list of all colection, where field brand_id = brand what i choose before.