codeigniter-base-model icon indicating copy to clipboard operation
codeigniter-base-model copied to clipboard

many to many relationship

Open saifulapm opened this issue 10 years ago • 2 comments
trafficstars

How to i will add many to many relationship ? is it possible ?

saifulapm avatar Mar 07 '15 20:03 saifulapm

See the readme, chapter "Relationships". There is a has_many array that you can set.

thnaeff avatar Jul 16 '15 14:07 thnaeff

+1

@thnaeff has_many is not the same as a many to many relationship.

many to many requires the use of a pivot table which I dont think this repo supports. Would be great if it did though.

https://github.com/avenirer/CodeIgniter-MY_Model This repo is based on @jamierumbelow 's and he has added many to many relationships. Its what im using until/if jamie ever picks back up development on this repo. Note: some things work a little differently an avenirer's porject.

sethwhitaker avatar Nov 22 '15 03:11 sethwhitaker