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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T02:32:16+00:00 2026-05-20T02:32:16+00:00

I am currently trying to run Doctrine in a custom (own) project, which isn’t

  • 0

I am currently trying to run Doctrine in a custom (own) project, which isn’t based on any popular framework.

I’ve been able to do the following for my current bootstrap.php;

<?php
require dirname(__FILE__) . '/Doctrine/Common/ClassLoader.php';
$classLoader = new \Doctrine\Common\ClassLoader('Doctrine', dirname(__FILE__) );
$classLoader->register(); // register on SPL autoload stack

However I have a strong feeling that this is far from enough and I can’t find any documentation which clearly states what I should do next.

Running $conn = Doctrine_Manager::connection('mysql://root:root@192.168.1.4/myTable', 'doctrine'); will make my PHP file to start throwing errors (Fatal error: Class ‘Doctrine_Manager’ not found) – so I am pretty sure that I have not completed the bootstrap.php properly.

What should I do to make Doctrine run as intended in my own project?

  • 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-20T02:32:17+00:00Added an answer on May 20, 2026 at 2:32 am

    If you work your way through extensive doctrine documentation on the project website, it walks you through step by step what’s required for a proper doctrine bootstrap

    Added from comment on question

    I’m fairly certain there is no Doctrine_Manager in Doctrine 2. There’s an EntityManager. Doctrine_Manager::connection('mysql://root:root@192.168.1.4/myTable', 'doctrine'); this is Doctrine 1 code.

    Either way, all classes should be namespaced \Doctrine_Manager

    Here are some good reference for you:

    Doctrine 1 to Doctrine 2

    Doctrine 2 – Not the same old PHP ORM Slide 44 is what you are after

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

Sidebar

Related Questions

I'm currently trying to run a classic ASP application which I've been given source
I am currently trying to make an existing VB.NET Project run. A null pointer
I'm currently trying to optimize my website, which is run on the Google App
I'm currently trying to find a PDF library which will run without a running
I'm currently trying to run a LINQ query over a MS SQL database. This
I'm currently trying to run a certain procedure (sql 2005) in VB6, passing some
i am currently trying to run a web crawler through the terminal. it compiles
Currently I'm trying to run this powershell script: Param ( $websiteName, $physicalPath ) import-module
I am currently trying to get my app to run on my iPhone 4.
I am trying to do run a bulk deletion using parameterized queries. Currently, 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.