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

  • Home
  • SEARCH
  • 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 4083714
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:20:53+00:00 2026-05-20T18:20:53+00:00

I am searching for a database abstraction layer in future PHP projects. Until now

  • 0

I am searching for a database abstraction layer in future PHP projects. Until now I have worked with plain SQL-commands and arrays on the one hand fully featured ORMs like Doctrine on the other hand.

I don’t like ORM because most of the time the job is to get a list of data from the database and to send it to the template engine. Both work fully fine with arrays and there’s no need to make it all complicated by capsule the data in an object when the template just needs the plain array. I don’t like the plain-SQL approach either because for the simple CRUD stuff I have to write everything myself and also I don’t like to maintain two models of my data (one in the DB and the other within my database access object).

Is there something which let’s me define the model one time only and generates the elementary stuff for me (like in Doctrine) but which saves me from the active record pattern?

  • 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-20T18:20:53+00:00Added an answer on May 20, 2026 at 6:20 pm

    The db is not a model, its the raw data source, and the model is, in thoery, more than just the data fields, it should also be the methods that affect the model’s data.

    You are always going to have to tell the program what to insert and where into the db, even if you use a library that encapsulates the sql or if you write it yourself.

    If you find yourself writing the similar “insert” and “select” commands over and over, then its time to design some functions or classes.

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

Sidebar

Related Questions

I have a SQL Server database and several clients that use it (via a
I am doing a project which searches a specific member from my database searching
I am creating a Cassandra database and would like full-text indexing and searching on
I'm trying to accomplish a multiple word searching in a quotes database using Ruby,
I have been searching in StackOverflow, but I only got so far this website
I am new to searching in MySQL and I have some tasks, which I
I am using Coldfusion, to do a site search for my company. I have
I have an issue regarding link button, On my website i have got a
I trying to get the contents of a PDF annotation to string so I

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.