Jump to content

SQL CRUD classes


phpPunk

Recommended Posts

Not looking for a look into OR/M or this or that...what I'm looking for is some unique genuine ideas on how to solve the Single class per physical table problem...

For instance, I like to keep each class focused on solely a single table (as much as I can) under some conditions it's merely enough to have dependenant classes return a array of associated ID's which the class can then use...

What about when that isn't practical? Or is it?

Perhaps denomalizing a schema would make sense...favouring code reuse/readability over finely tuned SQL queries pulling from various tables to return a single resultset...

Again, not looking for advice on which OR/M or Data Mapper, etc...to use...i'm looking for input from someone who has personally considered, used, implemented their own DB solutions over the years and what techniques they find work best under given conditions...

Cheers :)
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.