Welcome Guest, Not a member yet? Register   Sign In
DataMapper populate columns in relationship table
#1

[eluser]Unknown[/eluser]
I need populate some columns in the relashionship table.
I have this relashionship:
sections-> as many->pages
pages-> as many -> sections

In the automatic way it's simple related both. However I can't relate both in the manual way like the documentation show.

I want populate the column created or any other column that will be defined.

Some suggestions?
#2

[eluser]Unknown[/eluser]
Middle table can be replaced by an array. You can insert sections column in pages table and store values using the implode function like this 1,2,3,4,5. You can do same for the sections table. Big Grin
#3

[eluser]WanWizard[/eluser]
Additional fields in the relationship table are called join_fields in the documentation, you can check there how you use them to populate them.




Theme © iAndrew 2016 - Forum software by © MyBB