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

passantifrancesco3625
passantifrancesco3625

Hello. I would know if is possible show all row in a Manage List ( Relation belongsToMany).

I try to explain my need.

I have a relation NaN between Patient and Disease and in the pivot table I have date (when patient had a disease).

When I insert a disease for a patient, it's not possible to add the same disease because in the manage widget there are only the disease not inserted. The primary key is a composite key (patient_id, disease_id, date) so is possible to add the same disease several times.

There is a method to manipulate manage list? I know that there is the relationExtendManageWidget method but how to use it?

Thanks, F

1-1 of 1

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