Welcome Guest, Not a member yet? Register   Sign In
mapping friends model like facebook using datamapper
#1

[eluser]Unknown[/eluser]
Hi,

I am pretty new to to codeigniter and php itself. I am facing an issue using datamapper which I don't seem to find a solution for. It would be very nice if somebody could help me.

I have a table called persons with the following structure:

persons:
id,
name,
....

And another table called friends:

friends:
id,
person_id,
friend_id ( where friend_id again comes from persons table.

I don't know how to map it to model so that i can say a person has many friends

I hope I was able to describe my problem adequately. I need to find a solution quickly, I would really appreciate if someone could help me with this issue.

Also, Is datamapper the right orm to use for a high traffic website?

Thanks
#2

[eluser]GinaCovey[/eluser]

You can check username availability on multiple social networking sites, Claimbrand.com has a service that lets you check AND claim username on social network
#3

[eluser]InsiteFX[/eluser]
Best to post this in the DataMapper forum topic.




Theme © iAndrew 2016 - Forum software by © MyBB