Welcome Guest, Not a member yet? Register   Sign In
DataMapper Many to Many?
#1

[eluser]Unknown[/eluser]
I have started using the DataMapper library which looks great by the way.

I understand 98% of it but am uncertain about the many to many relationships? How do I define the many to many relationship in the model? Do I create a $has_many on either side? or is there another way?

Many thanks
#2

[eluser]BaRzO[/eluser]
And this is the dailed example about many to many relations and also you can find user guide in the zip file at below
You can download latest DataMapper from this url
#3

[eluser]Matt Borja[/eluser]
Here is a series of screencasts demonstrating CodeIgniter implementation of many-to-many database relationships.

Many-to-Many Database Relationships Example in CodeIgniter
#4

[eluser]WanWizard[/eluser]
[quote author="Mustafa Kahraman" date="1231911219"]And this is the dailed example about many to many relations and also you can find user guide in the zip file at below
You can download latest DataMapper from this url[/quote]
That version is very old, and should not be used.

The latest version is 1.8.0, which wil be released later today. :-)

Datamapper has an extensive manual, both online (http://datamapper.wanwizard.eu/) and included in the download. Many to many relationships are explained here.
#5

[eluser]Apocryphon[/eluser]
[quote author="Matt Borja" date="1294602833"]Here is a series of screencasts demonstrating CodeIgniter implementation of many-to-many database relationships.

Many-to-Many Database Relationships Example in CodeIgniter[/quote]

Hi, I know your site is down for maintenance, but is there any chance we could watch your screencast on another site?
#6

[eluser]bunquet2[/eluser]
Still down. Any alternative way?

<a href="http://www.addictinggamesjr.com">Addictive Games</a>
#7

[eluser]Matt Borja[/eluser]
[quote author="bunquet2" date="1295450430"]Still down. Any alternative way?

<a href="http://www.addictinggamesjr.com">Addictive Games</a>[/quote]

Yep, if anyone is needing some help on Many-to-Many relationships, send me a PM. I'm in the middle of doing a screencast right now on many-to-many. Covers a basic implementation that matches naming conventions with Data Mapper for when you do make the transition to Data Mapper. The implementation itself is using native CodeIgniter models and controllers.
#8

[eluser]bunquet2[/eluser]
I got this site http://datamapper.wanwizard.eu/pages/relationtypes.html --&gt; thank you man..

I wonder how to recognize some tables and workplaces like staff_wordplace etc.






<a href="http://www.addictinggamesjr.com">Addictive Games</a>
#9

[eluser]Matt Borja[/eluser]
[quote author="bunquet2" date="1295451385"]I got this site http://datamapper.wanwizard.eu/pages/relationtypes.html --&gt; thank you man..

I wonder how to recognize some tables and workplaces like staff_wordplace etc.


<a href="http://www.addictinggamesjr.com">Addictive Games</a>[/quote]

join_tables: http://datamapper.wanwizard.eu/pages/adv...tions.html
#10

[eluser]seth.aldridge[/eluser]
Can anyone help me answer this question?

http://stackoverflow.com/questions/99866...odeigniter

I'm having a hard time getting a Many to Many relationship working and I've tried a few different ways. This is my first project so I'm just starting to grasp the concepts.

Any helps is appreciated.




Theme © iAndrew 2016 - Forum software by © MyBB