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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:16:44+00:00 2026-05-16T01:16:44+00:00

I created a enterprise system model from a class diagram and converted it php

  • 0

I created a enterprise system model from a class diagram and converted it php object oriented code.

What I have now is just an empty model, it’s able to relate and the connections are handled. Now the next step is ahead. I have a database and have to put the object into the database.

Now there is a lack of experience on my side. I have the model and since php renders a view and makes one time requests to render the view I’m a bit confused. It can’t be possible to load all my entities out of the database and fill my model in memory and then use it because it would be way to large.

Does anybody know any ways to load just the needed data in my model and then use it? Maybe suggestions of a book or article?

Thanks!

  • 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-16T01:16:45+00:00Added an answer on May 16, 2026 at 1:16 am

    It sounds like you are running a “MV” (which doesn’t exist) rather than “MVC” design pattern.

    What’s happened to your controller? Your controller should route the request to the model entity which is required for this particular view and then you can use the response as you require.

    If your model represents information which is too large, then you are doing something wrong. You should consider lazy-loading your data, and only loading what is strictly neccessary. Naturally your controller will decide this and route everything to your model.

    Edit in response to comments

    You have several methods. If you are using Zend_Db_Table_Abstract then you subclass this class and use it as your model. This is probably the easiest.
    Then you just use it as your model. Set the $_name = "myComments" and then just create a method called getComments.

    In your method on in your subclass of Zend_Db_Table_Abstract, you can then create your $select.
    Then you just return the response from your model.

    So

        $rows = $table->fetchAll($select);
    

    And then just return $rows;
    You will then get your $rows back in your controller.
    You have loaded your model in your controller by $model = new Comments(); and then do the fetch using $result = $model->getComments();

    Its a bit of a mismatch ,but that should show you how you should do it. You just need to create your model now.

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

Sidebar

Ask A Question

Stats

  • Questions 488k
  • Answers 488k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Each class in hiearchy has to be serializable / DataContract.… May 16, 2026 at 8:39 am
  • Editorial Team
    Editorial Team added an answer I would try with: IP = sys.stdin.readline().strip() ADDR = sys.stdin.readline().strip()… May 16, 2026 at 8:39 am
  • Editorial Team
    Editorial Team added an answer You may take a look at XDocument. XDocument doc =… May 16, 2026 at 8:39 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I am working on an enterprise system that will utilise a RESTful web service
I tried to deploy a servlet I have created to Glassfish application server, and
I created a super simple console app to test out the Enterprise Library Caching
I created a simple Caching Data Access Layer that has caching using the Enterprise
Please, sorry for the long text. I have a library of C# Classes which
I'm trying to write an embedded ( NOT web, not enterprise ) content management
I'm generating an .XLS file with a DLL (Excel Library http://code.google.com/p/excellibrary/ ) I've added
I trying to call some ejb bean method from tread. and getting error :
I created a c++ .net dll, in which I need to implement logging. I
My problem is that I am receiving a Configuration system failed to initialize. error

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.