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 6131525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:59:08+00:00 2026-05-23T16:59:08+00:00

My website lets users record gameplay information. The basic database unit is the play

  • 0

My website lets users record gameplay information.

The basic database unit is the play class, which holds the play date, userID, result, and battle serial number. All of these are required datapoints.

Users may also submit an after action report. The AAR class contains the AAR title, the content in markdown, the content in HTML (post-markdown), and the UID of the play it is describing.

Users submit a new play via a form, and via another menu may add an AAR to any existing play they have.

I feel very organized.

However, when viewing the site gameplay results, I almost always need to list ALL of that data together…

Battle No.
Player
Play Date
Result
AAR Title
AAR Body

so I’m sitting here looking at my two very well-organized, very meaningfully defined classes and having trouble visualizing the “missing link” that lets me unite them.

First I wrote an aarLoader that hit the database for all AARs according to a desired variable (say, played by John), and stuck them into a master array which could then be listed by another method. However, the AARs themselves don’t contain enough data – they don’t tell you who, when, which, and who won.

So it seems like I need to create some kind of “record” class to bridge my play and AAR classes. Seems logical, but when I created the file my mind just went blank.

What properties would such a class have? An array? But the array would need to hold a play and AAR pair… sometimes (some plays have no matching AARs).

Having read this far, I humbly ask that one of the OOP gurus please give me some advice on how to solve this problem.

(all of the above assumes I am correct in not squishing plays and AARs into the same class, since they are created and modified separately, and since AARs are optional…)

  • 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-23T16:59:08+00:00Added an answer on May 23, 2026 at 4:59 pm

    Here’s what I would do:

    First, simply add the properties of what currently makes up your AAR class into the Play class:

    Play
        -> Battle Number
        -> Player
        -> Play Date (Barbies included?)
        -> Result
        -> After Action Title (nullable)
        -> After Action Report (nullable)
    

    This would match up exactly with your database table, so that the AAR fields would just be nullable fields that only get entered as an UPDATE whenever you save that AAR post-game.

    Pros of this mean easy database queries, easy updates, and a very simple database schema.

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

Sidebar

Related Questions

Lets say you're running a movie database website like IMDb/Netflix and users rate each
I'm building ASP.NET MVC2 website that lets users store and analyze data about goods
Our website lets users create small widgets that can be embedded on other third
Here's what I am trying to do. I have a website that lets users
I'm writing an application for the iPhone that lets users create 3D models which
I have developed an extension for opera which lets users to Google +1 websites.
A website I'm creating lets users have a unique subdomain on the site eg;
I have a website that lets users comment on books and articles, and the
lets say i use jquery.get to retrive a website to string and how am
I am running my django project from subfolder of a website. Lets say the

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.