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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T14:47:32+00:00 2026-05-17T14:47:32+00:00

Zend has Zend_Db but it’s not a full ORM. I already have sections of

  • 0

Zend has Zend_Db but it’s not a full ORM. I already have sections of an app written in a way that uses Zend_Db. I do however want to integrate a full ORM into the application to use it for more complex database operations, but I don’t want to have to re-write existing actions that are complete.

Those more experienced with Zend Framework, do you see a problem with using Zend_Db in some actions and an ORM in other actions? Is it possible for Zend_Db generated classes to co-exist with database classes generated by the ORM? What if I were to use both classes even in a single action? I don’t see a conflict there but I’m not that great with MVC or ORM so I may be missing a big conflict.

  • 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-17T14:47:33+00:00Added an answer on May 17, 2026 at 2:47 pm

    I worked on Zend_Db quite a bit through the 1.0 release of ZF, and I’ve used Doctrine a little bit too.

    There shouldn’t be any conflict between Zend_Db and another ORM. However, objects fetched through the Zend_Db interface would have no knowledge of objects fetched through another ORM interface e.g. Doctrine, and vice versa.

    So if your other ORM tried to be clever about batching commits to the database, you’d want to force it to commit before trying to load data from the same rows in a Zend_Db object. And likewise in reverse.

    That said, there’d be nothing in either ORM-ish library that helps you manage these cases, so it’s up to you to know how each ORM behaves. Sounds like you’re setting yourself up for a lot of work to accommodate the leaky abstractions, and you’d be better off rewriting your existing Zend_Db code.

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

Sidebar

Related Questions

We have a Zend application that has these following modules: Users Shop etc... Front
I have an application in Zend Framework that has to run for a different
I have recently started using Zend Studio which has reported as warning the following
In the Zend Framework Quickstart , there has been a change from models that
I am working on implementing Zend Framework within an existing project that has 2
Alright here's the situation, I have an application written in the Zend_Framework, that is
I have no idea if this is possible but is there a way in
I have a PHP application that has grown in size. The database used to
I know that the question has certainly be asked several times, but I can't
I have a function that has a query and a foreach loop: $sql =

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.