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 multiple linq queries for searching a database of information based on a
I've been searching and searching my sql database in phpmyadmin but I can't seem
Ok so I have a database that I am searching for business results. I
I'm searching for a bunch of int32's in a SQL (Compact edition) database using
been searching for a quick example of sorting a IQueryable (Using Linq To SQL)
I was used to the traditional way of doing database searching with the following
I have a MYSQL database containing the names of a large collection of people.
I have a database that has two tables, these tables look like this codes
I'm searching through some database search results on a website & trying to highlight
I want to make searching on my database with hibernate in Java, how can

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.