Jump to content

Admin controller and N->M relationships


Recommended Posts

Hi!

 

I'm new to prestashop and I'm currently developing a module which needs to handle M -> N relationships and I searched on the internet but I have found nothing about it.

 

Here is what I'm currently facing:

 

I have some bus routes (Route 1, Route 2...) and some bus stops (Stop 1, Stop2...).

 

I have two controllers, the BusRoutesController and the BusStopsController.

 

When I edit the bus routes I need to add bus stops to them and sort them in that route. Also the stop can have many routes assigned.

 

I have tried using 'type' => 'categories' in the fields_form when rendering the form, but it's not exactly what I need.

 

Any clues?

 

Thanks!!

Link to comment
Share on other sites

×
×
  • Create New...