Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6570853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:48:30+00:00 2026-05-25T14:48:30+00:00

I am building a friend system in CakePHP for users based on this: Add

  • 0

I am building a friend system in CakePHP for users based on this: Add a friend feature in CakePHP

But I need to add two additional features:

1.) Users need to be able to request and confirm/cancel friend requests

2.) Users need to be able to group friends e.g. Friends, Family, Co-workers etc

Can anyone give me some ideas as to what extra tables I would need and the likely relationships between them and the existing tables.

Also based on that article it seems the relationships are based on which user asked who but I don’t care much for that so what would I do to make it so it’s just a relationship rather than tracking which user requested the friendship and who is the friended friend?

NOTE: I asked a similar question earlier and had to delete it as everyone mis-understood the question. I am asking a question just like the one mentioned above and hoping to get answers like they have in terms of tables and relationships.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T14:48:30+00:00Added an answer on May 25, 2026 at 2:48 pm

    You’ll need a field in your relationships database table called confirmed or similar. Basically when a friendship is requested a record is created, but with confirmed set to 0. When the “requestee” accepts the friendship, the confirmed field is set to 1, or if declined the record is deleted (allowing the requester to request friendship again).

    To group, you’ll obviously need a groups table with an ID and non-unique name field, and a groups_relationships table that has two columns: relationship_id and group_id. This will allow a user to place a friend into a group. You can then query the groups_relationships table with a group_id to find the IDs of friends that a member has placed in that group.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building a friendship system in CakePHP that uses two tables: Users and
I'm building a web application for my friend. He wants this application to be
I am building a website with a referral system. Users who get their friends
A friend and I are building a fairly complex website based on java. (PHP
My friend and I are building website that allows users to upload images. We
I'm building a quick bullshit website for a friend, and I can't figure this
A friend of mine is now building a web application with J2EE and Struts,
A friend asked me for help on building a query that would show how
The background I'm building a fair-sized web application with a friend in my own
Building a new Mobile Web Platform for Mobile Users to purchase & download content

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.