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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:24:55+00:00 2026-05-17T00:24:55+00:00

I just discovered PHP-ActiveRecord not too long ago after struggling for nearly a month

  • 0

I just discovered PHP-ActiveRecord not too long ago after struggling for nearly a month to write my own ORM (I’m hard headed like that) and I fell in love with it. I had looked at Doctrine and Propel before but decided to run away due to the sheer complexity and learning curve. With AR, I don’t have the anxiety and learning difficulty I had with the others.

Shortly thereafter, I also discovered the symfony framework (I was also trying to make my own framework from stratch after finding other frameworks overly bloated). However, I have one issue: the symfony framework using Doctrine and Propel as an ORM/abstraction layer out of the box without any documentation on how to change it.

I haven’t actually used symfony yet, I’ve been reading the “Gentle Introduction” book. The ORM/abstraction layer seems somewhat removed from the core of symfony and seems to be easy enough to convert everything over. The question is… is it?

Does anyone have any sort of experience using ActiveRecord with symfony or, even, using anything other than Doctrine/Propel with symfony?

  • 1 1 Answer
  • 1 View
  • 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-17T00:24:56+00:00Added an answer on May 17, 2026 at 12:24 am

    I would bundle the ActiveRecord code as a Symfony plugin. You can read more about creating Symfony plugins here. The basics would be:

    • Create an plugins/sfActiveRecordPlugin folder. Put the active record code in plugins/sfActiveRecordPlugin/lib/vendor.
    • Put whatever bootstrapping ActiveRecord needs inside sfActiveRecordPlugin/config/config.php. This code will get executed every time a ProjectConfiguration is instantiated. If ActiveRecord has it’s own autoloader, you’ll probably need to resolve that here. You may also need to set Symfony to ignore the ActiveRecord classes, this is done via autoload.yml.
    • Enable your plugin in your ProjectConfiguration class:

      class ProjectConfiguration extends sfProjectConfiguration
      {
        public function setup()
        {
          $this->enablePlugins(array(
            'sfActiveRecordPlugin',
          ));
        }
      }
      

      The enable plugins call will disable any plugins not explicitly enabled. You can also call disablePlugins with the plugins you do not want loaded, if you prefer.

    That should be most of the work.

    Finally, I would urge you to give Doctrine another shot. Doctrine is a very powerful ORM and IMO is the best one out there. In addition, Symfony comes with a lot of Doctrine specific stuff that you’re going to end up rewriting at least some of.

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

Sidebar

Related Questions

I just discovered that truncate {table} statements are not caught by most database triggers.
i just discovered http://code.google.com/p/re2 , a promising library that uses a long-neglected way (
I've just discovered the email-address-saving form on my website does not work on Opera
I just discovered the get_defined_functions() function in PHP, I was checking it out, it
Ok this is probably just me not knowing enough about php but here it
EDIT : Removing the 'index.php' with .htaccess creates this probem I just discovered. Now
I just discovered that empty() does not work when passing data from an object.
I've just recently updated my PHP to a newer version and have discovered that
I just recently discovered variable variables in PHP, needless to say, it´s usefulness is
I recently discovered that it is possible to write windows applications in php. 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.