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

borjacm199235045
borjacm199235045

Hello, i dont know what the best way to do that. I'm trying to do a plugin with related same plugin items. For example: Event that have related Events. I try to do a relation with same model but it doesn't work for me, october dont get the second id ( image link https://imgur.com/1n9NTNA ). I try to do a pivot table, but the related id doesn't work.

The another try i did is create a new model with the same database, and it seems that works, but only get database fields, not attached images. That second model have the same relations that the Event. I have a pivot table between 2 models.

They are belongs to many relations but i dont know if it is better a has many.

I want to do that without create and remove: https://imgur.com/pTusY2E

Any idea? I dont know how to procced it.

1-1 of 1

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